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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"dgk" <dgk@xxxxxxxxxxxxx> schrieb:
If I have a class with a public variable, isn't this the same as a
private variable with a property? ie, isn't this:

In addition to the other replies:

Note that chaning a public field to a public property after the class has been shipped may break existing code if reflection is used to access the field/property there.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

.