T
Tom Shelton
I did think of that and was actually going to write that it's like adding to
a list. But that would only make sense if you could use it to add to lists
throughout C#. AFAIK, this is the only list that you can add to in this way.
I can't say I'm a big fan of case sensitivity. I avoid defining 2 variables
of the same name with different case.
I also avoid that as well.. but I do do this:
public class MyClass
{
int someVar;
public int SomeVar
{
get{ return someVar;}
set{ someVar = value; }
}
}
Of course, in C# 3.0...
public class MyClass
{
public int SomeVar {get; set;}
}