A few people have asked me why I don't ever really write about many technical things on my website, such as code examples or challenging design issues.  Well, today that's going to change.  Here's some code for you to enjoy:

 public class MikesCode
 {
     public static CodeExample GetCodeExample()
     {
         Mike mike = Mike.Instance();
  
         if (!mike.HasTime)
             throw new NotEnoughTimeException("Mike is busy doing something else.");

         if (typeof(CodeExample) != mike.PrioritizedTasks[0].GetType())  
             throw new PrioritizationException("Mike would rather be doing something else.");

         return GetRandomCodeExample();
     }
 }