Can enum represent string numbers?

Posted by Jack Null on Stack Overflow See other posts from Stack Overflow or by Jack Null
Published on 2010-05-27T18:59:48Z Indexed on 2010/05/27 19:01 UTC
Read the original article Hit count: 127

Filed under:

I want a user to input "Sun" and have that represent "1".

Console.Write("Enter a Day: ");
day = Console.ReadLine();

can enum do this?

© Stack Overflow or respective owner

Related posts about c#