Simon Horton

Simon Horton

  • NA
  • 74
  • 0

Converting strings to enumerators

Dec 27 2008 7:10 AM

This is my latest obstacle:

So far I have:

Console.Write("Enter player's position: ");
string sPosition = Console.ReadLine();

I have already defined a position enumerator. How do I convert sPosition into my enumerator?
I want to put Convert.ToEnum or Enum.parse.


Answers (4)