/// <summary> /// Returns a <see cref="System.String" /> that represents this instance. /// </summary> /// <returns> /// A <see cref="System.String" /> that represents this instance. /// </returns> public override string ToString() { if (FieldSource == RegistrationFieldSource.PersonField) { return(PersonFieldType.ConvertToString()); } return(base.ToString()); }
/// <summary> /// Returns a <see cref="string"/> that represents this instance. /// </summary> /// <returns> /// A <see cref="string"/> that represents this instance. /// </returns> public override string ToString() { if (FieldSource == RegistrationFieldSource.PersonField) { return(PersonFieldType.ConvertToString()); } if (Attribute != null) { return(Attribute.Name); } return(base.ToString()); }