The post assumes that you have basic under standing of LINQ. The following section tries to give some deeper insight in to the technology. A lot of examples can be found at 101 Linq Samples (http://msdn2.microsoft.com... 1. Language Integrated Query (LINQ): a. How does LINQ work? i. When you write an expression for DLINQ, the expression is converted to a set of DB commands. It then opens a connection to get data. ii. When you use LINQ to objects, it iterates through the...
C# 3.5 provides a lot of good features and here are a few of them. Implicitly Typed Local Variables: The compiler derives the type from the initialized value. // Implicitly typed local variables. var myInt = 0; var myBool = true; var myString = "Time, marches on..."; These are greatly useful while using with LINQ. Automatic properties: No need to write the entire property syntax. class Car { // Automatic property syntax. public string PetName { get; set; } } ยท But they cannot be used to define read-only...