Im trying to create a variable that can store all possible simple C#
types. This is so I can assign the type to a database column,
regardless of whether its string, int, bool etc. But, Id rather not
cast a string and switch the value, that seems a bit redundant.
So an example would be:
//
SimpleBaseTypes MyType;
MyType = bool;
MyDatabaseColumn.Type = MyType;
//
Is this possible or am I going about this in the wrong way?
Cheers all,
Nick