How to

encapsulate field

Published: 9. October 2011 | Updated: 9. October 2011
License: Microsoft Public License (MS-PL)
Categories: Framework » Basics
Tags: C#
Was this snippet helpful for you? YESYES / NONO
private string _value;

public string Value
{
    get { return _value; }
    set { _value = value; }
}
Send us feedback about this snippet »



Related Snippets: