Creating Dictionary C# with custom type passed by function
05:08 21 Sep 2012

I want to create a Dictionary with TKey as string and the TValue to be from type which is not know at compile time.

Let's say for example I have a function

 createDict(Type type)
 {
     Dictionary dict = new Dictionary..

 }

Is this scenario possible or I'm missing something very basic ?

c# dictionary