Example #1
0
 internal bool EqualsCompletely(UserObject other)
 {
     if (other == null)
     {
         return false;
     }
     return (
         base.EqualsCompletely(other) &&
         Id.Equals(other.Id) &&
         Locked.Equals(other.Locked) &&
         String.Equals(UsedSpacePercent, other.UsedSpacePercent)
     );
 }
Example #2
0
 public bool Equals(UserObject other)
 {
     return(Id.Equals(other.Id));
 }
 private bool CheckExactMatch(UserObject user)
 {
     bool equal = true;
     if (!String.IsNullOrEmpty(UserName))
     {
         equal = equal && UserName.Equals(user.UserName);
     }
     if (!String.IsNullOrEmpty(FamilyName))
     {
         equal = equal && FamilyName.Equals(user.FamilyName);
     }
     if (!String.IsNullOrEmpty(GivenName))
     {
         equal = equal && GivenName.Equals(user.GivenName);
     }
     if (!String.IsNullOrEmpty(EMail))
     {
         equal = equal && EMail.Equals(user.EMail);
     }
     return equal;
 }
Example #4
0
 public bool Equals(UserObject other)
 {
     return Id.Equals(other.Id);
 }