Sunday, January 3, 2010

Auto-Implemented Properties (C# Programming Guide)

Auto-Implemented Properties (C# Programming Guide): "Auto-Implemented Properties (C# Programming Guide)

In C# 3.0 and later, auto-implemented properties make property-declaration more concise when no additional logic is required in the property accessors. They also enable client code to create objects When you declare a property as shown in the following example, the compiler creates a private, anonymous backing field can only be accessed through the property's get and set accessors."

0 comments: