Hi Jens,
Yes, that blog article only talks about the read-only issue, which did not
resolve write-only issue. So I contacted Eric for the write-only property
issue.
Today, I got the feedback from him, that is:
"In general, I'd expect that most attribute classes are just containers for
information and don't have any real logic in them, and that's why the
design is the way it is."
So the answer for this issue is that: This is an expected behavior, the
Visual C# development team choose this type of design.
Also, I have asked Eric about why VB.net allow write-only property. The
answer is these 2 languages are developed by different teams, and VB.net
team just choose another different design for it.
I hope all these makes sense to you. But if you still have any concern,
please feel free to feedback here, I will assist you.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.