I have 3 generict type list.
List = new List();
List = new List();
List = new Lis
What a sticky problem. Try this:
List c = null;
List a = null;
List d = null;
object o = GetObject();
c = o as List;
a = o as List;
d = o as List;
Between c, a, and d, there's 2 nulls and 1 non-null, or 3 nulls.
Take 2:
object o = GetObject();
IEnumerable e = o as IEnumerable;
IEnumerable c = e.OfType();
IEnumerable a = e.OfType();
IEnumerable d = e.OfType();