public override int GetHashCode() { unchecked { var hashCode = FamilyName?.ToLower().GetHashCode(); hashCode = (hashCode * 397) ^ GivenName?.ToLower().GetHashCode(); hashCode = (hashCode * 397) ^ DateOfBirth.Date.GetHashCode(); return(hashCode ?? 0); } }
public string GetUserName() { return(string.Join(".", new string[] { GivenName.ToLower(), FamilyName.ToLower() }).Trim()); }