I currently have a class say (that looks like this)
public class foo
{
public MyEnumType Result { get; set; };
}
currently when I do this
foo a = new foo();
string str = JsonConvert.SerializeObject(a);
The Result comes out as int type. Is there a way for me to get it as string type ? by telling it to do MyEnumTypeInstance.toString();