C# 3.0 Features Basics For LINQ PART II

Continuing from part 1, here I will go one more step further and explain the language constructs basics in C# 3.0 which will help us in writing a LINQ query. Lambda Expression Explained In C# 2.0 you can write anonymous delegate methods that helps in reducing the amount of code written. To explain this, first…

1

C# 3.0 Features Basics For LINQ – PART 1

The ‘var’ Keyword Type inferred at compile time Can only be defined within method scope Mostly used when you need a variable for anonymous types which can only be resolved at compile time e.g. LINQ queries Auto Implemented properties This feature eases the creation of properties for a field inside the C# class  e.g. 1:…

1