title: Nested enums with System.Reflection.Emit
body: <p>I want to create a class with a nested enum.</p>
  
  <pre><code>public class Foo
  {
      public enum Views
      {
      }
  }
  </code></pre>
  
  <p>However System.Reflection.Emit.TypeBuilder class has no DefineNestedEnum only DefinedNestedType.  ModuleBuilder.DefineEnum exists that let's me create an enum but I find no way to make it nested.  Can I create an enum without faking it (i.e., using EnumBuilder)?</p>
  
  <hr>
  
  <p>I moved my solution to an answer below.</p>