Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get value user provided
- string volString = Console.ReadLine();
- int volInt = Int32.Parse(volString);
- // perform explicit cast from
- // int to Volume enum type
- Volume myVolume = (Volume)volInt;
Advertisement
Add Comment
Please, Sign In to add comment