Exemplo n.º 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;
        }
Exemplo n.º 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);
        }