title: How to create a Dictionary with any types in Type variables?
body: <p>Currently im facing the problem I need to create an instance of Dictionary with any type of its cases. The types are delivered by the arguments of the method. 
  I do not simply want to create a dynamic or object type Dictionary, because this faces the user alot of convertion problems by using my library. 
  I also cannot use a simple constructor, because my method fills the Dictionary with data (that is stored in a file) in real. It's important to create the specific dictionary by Type variables.
  This is what im thinking of:</p>
  
  <pre><code>public static Dictionary&lt;dynamic, dynamic&gt; createDict(Type type1, Type type2)
  {
      // how to create the dictionary?
      // im filling my dictionary with any data ...
      return dict;
  }
  </code></pre>
  
  <p>Here the user calls my method:</p>
  
  <pre><code>Dictionary&lt;string, int&gt; dict = MyLib.createDict(typeof(string), typeof(int));
  // or
  MyOwnType myInstance = new MyOwnType();
  Dictionary&lt;string, MyOwnType&gt; dict = MyLib.createDict(typeof(string), myInstance.GetType());
  </code></pre>