Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 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());
 }