private string Name { get; set }
You can have a private setter so the prop becomes immutable (ie unchangable after the object is instantiated)
private string Name { get; private set; }
Code samples, examples, tutorials, howto's regarding Windows, .Net development and T-SQL
No comments:
Post a Comment