C# features

Logo devnterface d88f51727b3053dd3115e1ef9c566ad79b4c2edb3cd208c06345fc37058bebd9

Since version 3.0 of C# some features that make writing classes and common methods simpler and concise have introduced. In this post we talk about automatic properties and object initializers. AUTOMATIC PROPERTIES The automatic properties (or auto-implemented properties) are nothing more than a compact syntax for writing the properties of a class. They allow you to write code like 123public String name {get; set;} public DateTime birthday {get; set;} that will be automatic...

Read more