Things I'm loving about C# 2.0
New operator ?? :public string NonNullString
{
get { return _NonNullString == null ? string.Empty : _NonNullString; }
}
can now be changed to:
public string NonNullString
{
get { return _NonNullString ?? string.Empty; }
}
0 Comments:
Post a Comment
<< Home