예제 #1
0
 public User(int id, string userName, string password, string email, PrivilegesGroup privilegeGroup)
 {
     ID             = id;
     UserName       = userName;
     Password       = password;
     Email          = email;
     PrivilegeGroup = privilegeGroup;
 }
예제 #2
0
        public override bool Equals(object obj)
        {
            PrivilegesGroup other = obj as PrivilegesGroup;

            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            return(ReferenceEquals(this, other) ||
                   (ID == other.ID &&
                    GroupName == other.GroupName &&
                    Privileges.SameAs(other.Privileges)));
        }