Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(obj, this))
            {
                return(true);
            }
            if (!(obj is PropertyPrivilegeOfService))
            {
                return(false);
            }
            PropertyPrivilegeOfService other = (PropertyPrivilegeOfService)obj;

            return(create == other.create && read == other.read && update == other.update && delete == other.delete);
        }
Exemplo n.º 2
0
        private static void Put(bool create, bool read, bool update, bool delete)
        {
            int index = PropertyPrivilegeImpl.CalcIndex(create, read, update, delete);

            array[index] = new PropertyPrivilegeOfService(create, read, update, delete);
        }