public string MyString { get;set; };
which creates a private variable with the default public accessors (getters/setters), which is basically equivalent to...
private string _myString;
public string MyString
{
get { return _myString; }
set { _myString = value; }
}
Use the above for code simplicity. I think, it has been there from the C# v3.5 version. Correct me if i am wrong.
Thanks and Regards
Akiii