G
Guest
I am looking for a way to do something similar to
public void CreateList()
{
Type[] dataTypes =
{
typeof(int), typeof(string)
};
Dictionary<string, object> mylist = new Dictionary<string, object>();
foreach ( Type y in dataTypes )
{
mylist.Add( y.Name, new List<y>() );
}
}
For reference, I ** WILL NOT ** be using the System.Data types. I will
be using custom classes.
Thanks,
Dave
public void CreateList()
{
Type[] dataTypes =
{
typeof(int), typeof(string)
};
Dictionary<string, object> mylist = new Dictionary<string, object>();
foreach ( Type y in dataTypes )
{
mylist.Add( y.Name, new List<y>() );
}
}
For reference, I ** WILL NOT ** be using the System.Data types. I will
be using custom classes.
Thanks,
Dave