Example #1
0
        public bool DeepEquals(AuthorizationRole other)
        {
            if(other == null)
                return false;

            if (Permissions.Count != other.Permissions.Count)
                return false;

            for (int i = 0; i < Permissions.Count; i++)
            {
                if (Permissions[i].DeepEquals(other.Permissions[i]) == false)
                {
                    return false;
                }
            }

            return true;
        }
Example #2
0
        public bool DeepEquals(AuthorizationRole other)
        {
            if (other == null)
            {
                return(false);
            }

            if (Permissions.Count != other.Permissions.Count)
            {
                return(false);
            }

            for (int i = 0; i < Permissions.Count; i++)
            {
                if (Permissions[i].DeepEquals(other.Permissions[i]) == false)
                {
                    return(false);
                }
            }

            return(true);
        }