I have an enum
public enum BookType
{
Old = 'O',
New = 'N',
All = 'B'
}
What I need to do is get the value of the char in the enum. For example if the enum is set to:
BookType bt = BookType.New
I need to get the value of new "N"
string val = (???)bt;
I need val = N
What is the best way to do this? If it was an int easy, just cast to int.
Thanks.