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; }
>
I recommend using something similar to this:
public class Result{
public bool Result { get; protected set; }
public string Message { get; protected set; }
public Result(bool result, string message) {
Result = result;
Message = message;
}
}
This way, you don't need to declare member variables, let the compiler do the work for you! The code is very clean and short, and refactoring is a breeze.