title: Test if an object is an Enum
body: <p>I would like to know if 'theObject' is an enum (of any enum type) </p>
  
  <pre><code> foreach (var item in Enum.GetValues(theObject.GetType())) {
  
       //do something
   }
  </code></pre>