Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public Get and private Set?
Message
From
26/07/2005 15:20:21
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01035993
Message ID:
01036006
Views:
12
Nope. Victor's correct. But, keep in mind that you don't *have* to have a set, so you could leave it out of the public property, which would essentially make that property read-only.

~~Bonnie



>I am pretty sure I know the answer to this one myself already, but I would still like to pose the question.
>
>Can I make the Get method of a property public and the Set method of the same property private?
>
>Thanks,
>Einar
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform