AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter09/Listing09.12.ConvertingAStringToAnEnumUsingEnum.Parse.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_12
{
    using System;
    using System.Diagnostics;

    public class Program
    {
        public static void Main()
        {
            ThreadPriorityLevel priority = (ThreadPriorityLevel)Enum.Parse(
                typeof(ThreadPriorityLevel), "Idle");
            Console.WriteLine(priority);
        }
    }
}
