Re: Public variable not the same as using a property?

Tech-Archive recommends: Speed Up your PC by fixing your registry



On Fri, 14 Sep 2007 07:52:02 -0700, Terry <TerryL@xxxxxxxxxxxxx>
wrote:

Here is a quote from "Programming Misrosoft Visual Basic .Net" by F. Balena.

Visual Basic .Net documentation and tools - such as Intermediate Language
Disassembler (ILDASM)....make a distinction between class properties
implemented as Public variables (known as fields) and properties implemented
as Property procedures (the real properties). While most of the time you can
ignore the difference and use fields as if they were first-class properties
(as you do in previous Visual Basic versions), sometimes their different
implementation explains subtle differences in their behavior.

So maybe this is one of those subtle differences. I believe that what you
said was true for VB6, but obviously has changed.

Yes, I guess that is the case. I would have thought that databind
would accept any repeating structure (I guess anything with
iEnumerable?) but clearly not. Ok, I learned something new today.
.