示例#1
0
 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);
     }
 }
示例#2
0
 public string GetUserName()
 {
     return(string.Join(".", new string[] { GivenName.ToLower(), FamilyName.ToLower() }).Trim());
 }