public static void Run() { // begin var status = (Status)64; var defined = Enum.IsDefined(typeof(Status), status); if (defined) Console.WriteLine("Allocation!"); // end Logger.Log("Status: {0}", status); }