public bool DeepEquals(OperationPermission other) { if(other == null) return false; if (Operation != other.Operation) return false; if(Allow != other.Allow) return false; if(Priority != other.Priority) return false; if(Tags.Count != other.Tags.Count) return false; for (int i = 0; i < Tags.Count; i++) { if(Tags[i] != other.Tags[i]) return false; } return true; }
public bool DeepEquals(OperationPermission other) { if (other == null) { return(false); } if (Operation != other.Operation) { return(false); } if (Allow != other.Allow) { return(false); } if (Priority != other.Priority) { return(false); } if (Tags.Count != other.Tags.Count) { return(false); } for (int i = 0; i < Tags.Count; i++) { if (Tags[i] != other.Tags[i]) { return(false); } } return(true); }