Auto Implemented Properties in .NET
If we want to create a class with a bunch of public properties , we generally do it by storing the value of the properties in private field. Eg : Class Student { private int id; public int ID { get { return id; } set { id=value; } } }
Categories: .NET, ASP.NET, Compact Framework / Windows Mobile, Visual Studio 2010 Tags: Auto Implemented property, bunch, explicitly, get, getter or setter, implicitly, private, prop, properties, public, set, snippets, Student.C# 3.0, syntax, VB 10.0
