by Yogesh | Apr 26, 2021 | C#
C# 9.0 new pattern matching feature What is Pattern Matching checks if a value has a certain shape. C# 9.0 Introduce relational patterns like >,=,= 1983} VendorDOB1983) { // Use the VendorDOB1983 variable here } using System; namespace ConsoleApp13 { class Program {... by Yogesh | Apr 27, 2019 | C#
Generic Class in C# Generic classes in C# was introduced in C# 2.0. A generic class is introduced for type safety. Using generics, C# class may work as a placeholder for any data type. Angle brackets are used to define generic class in C#. Good understanding of... by Yogesh | Jul 25, 2017 | C#
WHY FACTORY: Initially an object is created with the “new” operator. That basic mechanism of object creation could result in design problems or added complexity to the design. On each Object creation we must use the new keyword. The Factory helps you to... by Yogesh | Jun 21, 2016 | C#
Constructors in C sharp The syntax for declaring basic constructors is a method that has the same name as the containing class and that does not have any return type: public class Student { public Student() { } //other class definition It’s not necessary to provide a... by Yogesh | Jun 19, 2016 | C#
AutoMapper in C# AutoMapper is utility package provided by the Microsoft net framework. Automapper provides mapping between one class object to another class object. In simple words assigning properties values of one class into another class is called automapping. You... by Yogesh | Dec 4, 2015 | C#
Lambda expression is feature of C# 3.0. A lambda expression is an anonymous function.I can say that lambda expression is a method without declaration, i.e., access modifier, return value declaration, and name. It follows a syntax to create and invoke functions...