Creating Dictionary C# with custom type passed by function
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 ?