Asymmetric Accessor Accessibility means you can do this:
public string Name
{
get { return this.name; }
protected set { this.name = value; }
}
Is that cool, or what! There a few caveats, so be sure to read the Language Spec page on this topic.
Print | posted on Wednesday, December 20, 2006 3:10 PM |
Powered by:
Copyright © Dan Koster