Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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);
        }