Monday, January 6, 2014

How to set default value for Auto-Implemented Properties in C#

Auto-Implemented Properties:
public string Name { get; set; }

Not you can not modify property directly, you could put default in class constructor.

No comments:

Post a Comment