C
csharpers
Hey, this is a very basic question for all you csharpers...
I have created a class:
public class Answer
{
public enum theAnswer { A, B, C }
}
I want to be able to do a toString as below on my enumeration... but
cant figure out the syntax to put in my class!!!
theAnswer myAnswer;
string myString;
ans = myAnswer.A;
mystring = ans.toString
I have created a class:
public class Answer
{
public enum theAnswer { A, B, C }
}
I want to be able to do a toString as below on my enumeration... but
cant figure out the syntax to put in my class!!!
theAnswer myAnswer;
string myString;
ans = myAnswer.A;
mystring = ans.toString