J
JB
Hello
List<T> is said to be more powerful than ArrayLists but if you have
something like this:
List<int> mylst = new List<>;
myList.Add("Joe");
myList.Add(25);
the list doesn't seem to accept the name "Joe".
How do you get a List<> to accept different datatype if possible?
JB
List<T> is said to be more powerful than ArrayLists but if you have
something like this:
List<int> mylst = new List<>;
myList.Add("Joe");
myList.Add(25);
the list doesn't seem to accept the name "Joe".
How do you get a List<> to accept different datatype if possible?
JB