C#.NET Code Snippets

var type in c#
Local variables can be given an inferred "type" of var instead of an explicit type. So called Implicitly typed local variables.
Auto Implemented Properties in c#
The properties with no implementation inside Get or Set are called as Auto Implemented properties.
Object Initializer in c#
With Object Initializer , you can easily assign data to specific properties in a type , without explicitly creating constructors.
Collection initializer in C#
Collection initializers let you specify one or more element initializers when you initialize a collection class. The element initializers can be a simple value, an expression or an object initializer.
Partial Methods in C#
One part of the class contains the signature of the method. An optional implementation may be defined in the same part or another part. If the implementation is not supplied, then the method and all calls to the method are removed at compile time.