Is it possible to add different type of generic objects to a list?. As below.
public class ValuePair { public string Name { get; set;}
it's not possible as far as I know.
the line:
List list = new List();
you wrote in your sample is not providing a concrete type for T and this is the issue, once you pass it, you can only add object of that specific type.