|
-
Jan 7th, 2010, 09:38 PM
#1
write only properties
I am just curious about this, but in all my years writing code, I have never once ever come across a time to use a write only property. Of course readonly is pretty common in class development, and while I may have had classes where I don't specifically need to expose a property for reading, generally you end up with a method like SetValue or something like that, which is more or less the same idea as a writeonly property.
I don't recall ever seeing a writeonly property in a .NET framework class.
So can anyone provide an example where it actually made good sense to use a writeonly property over either a read/write property, or a method?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|