public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(obj, this))
            {
                return(true);
            }
            if (!(obj is TypePropertyPrivilegeOfService))
            {
                return(false);
            }
            TypePropertyPrivilegeOfService other = (TypePropertyPrivilegeOfService)obj;
            int index      = TypePropertyPrivilegeImpl.CalcIndex(create, read, update, delete);
            int otherIndex = TypePropertyPrivilegeImpl.CalcIndex(other.create, other.read, other.update, other.delete);

            return(index == otherIndex);
        }
 public override int GetHashCode()
 {
     return(TypePropertyPrivilegeImpl.CalcIndex(create, read, update, delete));
 }