John,
Huh? (to the entire thread).
As Herfried states: Properties are simply syntactic sugar to accessor
methods. The concept of encapsulating access (accessor methods) is a major
tenant (concept) of OO.
The .NET Framework (C#, VB.NET, Managed C++) support properties just as VB6
did. The specific syntax for declaring the property may change slightly
between the languages, however you access them the same in all the
languages, you access them as you would a field...
Other platforms, such as Java & J#, use get/set accessor methods. Which
means you need to use method invocation syntax to use them. This also means
that J# although a .NET language requires you to use the underlying get/set
method that the property creates...
Assume you have a Person class with a "Name" property in a .NET, you can
use:
aPerson.Name = "Jay"
value = aPerson.Name
While in Java a Person class with "Name" accessor methods you would use:
aPerson.setName("Jay")
value = aPerson.getName()
If you look at the IL, the .NET code actually generates calls that look like
the Java! Syntactic sugar!
The following section of MSDN identifies Language Equivalents
http://msdn.microsoft.com/library/d...us/vsintro7/html/vxgrfLanguageEquivalents.asp
I don't see that it discusses Properties specifically.
Hope this helps
Jay