Originally posted by CornedBee
In the VB and .Net frameworks it's the same except that the properties syntax makes it look like the checkbox class directly exposed the variable. In reality the property getter queries the underlying checkbox for the value. The drawback is that it does this everytime you access the property, which is why I don't want properties to be included in C++.
Yes, but you can optimize your C# code to eliminate this behavior by doing the same thing you would do in C++. Take the properties value and store it in a variable for later use. Most times though, it doesn't matter how you do it because most apps written in C# don't require the little speed gain you are talking about; if they did, they would use C++