LINQ (Language Integrated Query)

LINQ, as you may already know, looks like TSQL queries, except they are twisted upside down, and written in right inside of C#. You have probably already heard about the benefits, so I won't go into those for now. In here, we are going to talk about Query Expression Translation. You can write queries in LINQ... Continue Reading →

Object and Collection Initializers

First Object Initializers Lets say, you had a class as shown below - public class Monkey{private string monkeyName;private int age; public string Name { get { return monkeyName; } set { monkeyName = value; } }public int Age { get { return age; } set { age = value; } } } The above can be easily instantiated as shown below - var gwBush... Continue Reading →

Extension Methods

Extension methods enable you to "add" methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. Extension methods are a special kind of static method, but they are called as if they were instance methods on the extended type. For client code written in C# and Visual Basic,... Continue Reading →

Create a website or blog at

Up ↑