AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter09/Listing09.13.ConvertingAStringToAnEnumUsingEnum.TryParse.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_13
{
    using System;

    public class Program
    {
        public static void Main()
        {
            System.Diagnostics.ThreadPriorityLevel priority;
            if(Enum.TryParse("Idle", out priority))
            {
                Console.WriteLine(priority);
            }
        }
    }
}
