When I write a class I always expose private fields through a public property like this:
private int _MyField; public int MyField { get{return _MyField; } >
What is the best practice for using public fields?
“Don’t.” See also: Should protected attributes always be banned? which concerns protected fields but what is said there is even more true for public ones.