/// <summary> /// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>. /// </summary> /// <returns> /// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>. /// </returns> public override string ToString() { if (UtilityClass.IsNotNullOrEmpty(Title)) { return(Title); } return(Text); }
public override string ToString() { if (UtilityClass.IsNotNullOrEmpty(Title)) { return(Title); } if (UtilityClass.IsNotNullOrEmpty(Id)) { return(Id); } if (UtilityClass.IsNotNullOrEmpty(Name)) { return(Name); } return(base.ToString()); }