/// <summary> /// Gets a string representation of the family history person item. /// </summary> /// /// <returns> /// A string representation of the family history person item. /// </returns> /// public override string ToString() { string result = string.Empty; if (_relativeName != null && _relationship != null) { result = string.Format( Resources.FamilyHistoryRelativeToStringFormatNameAndRelationship, _relativeName.ToString(), _relationship.ToString()); } else if (_relationship != null) { result = string.Format( Resources.FamilyHistoryRelativeToStringFormatNameAndRelationship, string.Empty, _relationship.ToString()); } else if (_relativeName != null) { result = _relativeName.ToString(); } return(result); }
/// <summary> /// Gets a string representation of the family history person item. /// </summary> /// /// <returns> /// A string representation of the family history person item. /// </returns> /// public override string ToString() { string result = _relativeName.ToString(); if (_relationship != null) { result = string.Format( Resources.FamilyHistoryToStringFormat, _relativeName.ToString(), _relationship.ToString()); } return(result); }