private void Call()
{
List<int> numbers= Get<List<int>>();
MessageBox.Show("Numbers amount " + numbers.Count);
}
private T Get<T>()
{
T list = Activator.CreateInstance<T>();
int a = 1;
//HOW TO ADD "A" TO THE T-object [which is a list...]?
return list;
}
Is it possible to let "T" be a List? I mean, it is possible (it compiles), but how do you add an object to these kind of lists?