anybody who is also using this construct for string properties? we rarely want our string properties to be null and since it is a reference type, we have to have handling for it. can you see any disadvantage of such construct?
[code language="C#"]
public string StringProperty
{
get { return _stringProperty; }
set
{
if(value == null) value = string.Empty;
//Do whatever
}
}
[/code]
Posted
04-18-2006 12:25 PM
by
jokiz