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); }
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); }