J
John Dann
I'm learning VB.Net with a view to converting from VB6. One simple
detail I'm unsure of concerns fields (as class members).
In VB6 I'd thought that declaring a class property just as a public
variable (ie without get/set procedures) was deprecated though valid.
I'm slightly surprised to see this same approach also turning up in
what is generally the more formalised structure of .Net and even
apparently being approved of with the title of a field or class field,
while still seemingly functioning as a standard property.
Have I misunderstood something about how fields are now to be used in
..Net, or does a field remain a simple substitute for a full property
declaration that wouldn't necessarily be used in well structured code?
TIA
John Dann
detail I'm unsure of concerns fields (as class members).
In VB6 I'd thought that declaring a class property just as a public
variable (ie without get/set procedures) was deprecated though valid.
I'm slightly surprised to see this same approach also turning up in
what is generally the more formalised structure of .Net and even
apparently being approved of with the title of a field or class field,
while still seemingly functioning as a standard property.
Have I misunderstood something about how fields are now to be used in
..Net, or does a field remain a simple substitute for a full property
declaration that wouldn't necessarily be used in well structured code?
TIA
John Dann