@db2 said:
But care to elaborate on this
List<Control>? I'm a bit new to .NET stuff, and Google wasn't
helping much here. Rotten fuzzy searches that ignore punctuation... ;)
A link will suffice if you've got one.
It's an example of a splendid addition to .NET 2.0, called generics.
http://msdn2.microsoft.com/en-us/library/0x6a29h6.aspx
In this case, it allows you to create a strongly-typed instance of a base collection class, like List, Hashtable, etc.
In previous versions of .NET, these collections were not typesafe,
which meant that you could cram any old type of object in there, and
when it came time to get them out, you had to cast each object to the
appropriate type, and if an object of the wrong type made its way in,
you would throw an InvalidCastException.
Long story short, List<Control> creates an instance of the List
class that can only hold objects that are descended from the Control
class. You could use List<String>, List<Boolean>,
List<MyCustomObjectType>...the possibilities are, well, awesome.