Re: Public variable not the same as using a property?
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Sun, 16 Sep 2007 13:03:09 +0200
"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/>
.
- References:
- Prev by Date: Re: VB.Net Express
- Next by Date: Re: Resuming from an error
- Previous by thread: Re: Public variable not the same as using a property?
- Next by thread: Unhandled Exception Handler
- Index(es):