任何人有任何想法来清理这个?
public string FullName
{
get
{
var fullName = new StringBuilder();
if (FirstName.Length > 0)
fullName.Append(FirstName);
if (LastName.Length > 0)
{
if (fullName.Length > 0)
fullName.Append(" " + LastName);
else
fullName.Append(LastName);
}
return fullName.ToString();
}
}