Skip to main content

Posts

Showing posts with the label OOPs concepts

A Glimpse of the future in the C#, What's New in C# 8.0 Features?

Today, I happy to share the some selected and important feature proposals for C# 8.0 which are introduce in the below - ü   Extension Everything ü   Default Implementation on Interfaces ü   Nullable Reference Types ü   Preventing Assignment from Nullable to Non-Nullable Some Are Proposed Features will available on future - ü   Default interface methods ü   Support for virtual extension methods ü   Overrides in interfaces ü   Reabstraction ü   Static and private methods ü   Base interface invocations ü   CLR support API ü   Abstract Override These all are available in the Future Release. ü   Stayed Informed - Object Oriented Programming Concepts (OOPs) Extension Everything - I hope you are familiar with an extension method which was introduced in C# 3.0. Extension method is a static method to the existing static class. Extension methods enable you to add methods to the existing ...

How to validate GUID string in C# .Net?

There are different types of mechanisms to validate GUID in C# .Net . I am going to share a quite simple code example as given below. /// <summary> /// VALIDATE EXPRESSION IS GUID OR NOT! /// </summary> public static bool IsGuid( string guidString) {     bool IsGuid = false ;     if (! string .IsNullOrEmpty(guidString))     {         Regex guidRegExp = new Regex ( @"^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$" );         IsGuid = guidRegExp.IsMatch(guidString);     }     return IsGuid; }

Object Oriented Programming Concepts (OOPs)

Basic OOPs Concepts Delegates Events Generics Indexers Out keyword Ref keyword Property Struct Arrays Collection of Classes Class Library Virtual | Override | new Keyword Objects|Classes Abstraction Encapsulation Inheritance Constructors Concept Private Constructor Parameterized Constructor Constant, read-only and static Keywords Base class Parameterized Constructor We have two classes, one is ClassA and other is ClassB, the ClassB inherit base class ClassA. If we make the object of child class ClassB then which class constructor called first? We know that Base class constructor called first. But if we creating object with parameters, and base class have both constructor default and parameter, then which constructor of base class called first. Basic C# Concepts What are ASP.NET Delegates, Types and Examples? What are funk, ...

ASP.Net, C#, MVC and OOPs Concepts Tutorial and Sample Application!

Basic OOPs Concepts Delegates Events Generics Indexers Out keyword Ref keyword Property Struct Arrays Collection of Classes Class Library Virtual | Override | new Keyword Objects|Classes Abstraction Encapsulation Inheritance ASP.Net, C#, MVC Concepts Difference Between MVC 3, MVC 4, MVC 5 and MVC 6 Custom Roles Base Authorization in ASP.NET MVC Redirecting unauthorized controller in ASP NET MVC Windows Authentication in MVC 4 with IIS Express 13 New Key Features of MVC 6 - [vNext Architecture] The ASP.Net MVC Process Request Life Cycle? Import export excel file in MVC 5 How to get values from form collection in ASP.net MVC 4? Export Grid-view Data to Excel in ASP.Net ASP.NET MVC 4.0 Features Get base URL of an ASP.NET MVC Application Web grid in MVC 4 razor ...