Ok, well some people have probably already heard about this one, but content has been getting scarce lately. Apparently no one works at Microsoft in the month of December. In C# 2.0, we now have accessor accessibility, which means you can set different levels of protection on the get and set accessors of a property. This is useful, when maybe you want to be able to get the value of the property outside of a class, but only want to be able to set it from within the class.
Here is an example:
// notice the entire property is public, but set is protected
public string Name
{
get
{
return name;
}
protected set
{
name = value;
}
}
Read the complete post at http://www.dotnettipoftheday.com/blog.aspx?id=204