title: Partial enum compiled in runtime - alternative
body: <p>I would like to do something like a <code>partial enum</code>. If I know C# has no support for this. My idea is to do <code>Dictionary&lt;PartialEnum, MyClass&gt;</code> in <code>MyClass2</code>. Dictionary contains some properties loaded from file and I want to have a possibility to add some other "properties" (members of <code>PartialEnum</code>). I am using the Roslyn so I can compile some "second" part of <em>enum</em> during runtime but don't know how to do it. (<code>partial static class</code> is also not supported so I cannot use <code>public readonly</code> members)</p>
  
  <pre><code>MyClass{
    string value;
  
    public string Value{
       get{ return value;}
    }
  }
  
  MyClass2{
  
    private Dictionary&lt;PartialEnum,MyClass&gt; properties;
  
  }
  </code></pre>
  
  <p>I can use <code>string</code> like key but it is not very nice. So is it possible to do something like:</p>
  
  <pre><code>partial enum PartialEnum{
   Name,
   Group, ...
  }
  </code></pre>
  
  <p>and runtime compiled part</p>
  
  <pre><code>partial enum PartialEnum{     
   runTimeLasName,
   runTimeTitle, ...
  }
  </code></pre>