Beispiel #1
0
        public static bool operator ==(RedirectionScope left, RedirectionScope right)
        {
            bool flag = false;

            if ((left == null) && (right == null))
            {
                return(true);
            }
            if ((left == null) || (right == null))
            {
                return(flag);
            }
            return((left.InternalScope == right.InternalScope) || RedirectionUtility.IsNamespaceAndValueMatch(left.Value, left.Namespace, right.Value, right.Namespace));
        }
Beispiel #2
0
        public static bool operator ==(RedirectionScope left, RedirectionScope right)
        {
            bool result = false;

            if ((object)left == (object)null && (object)right == (object)null)
            {
                result = true;
            }
            else if ((object)left != (object)null && (object)right != (object)null)
            {
                if (left.InternalScope == right.InternalScope)
                {
                    result = true;
                }
                else
                {
                    result = RedirectionUtility.IsNamespaceAndValueMatch(left.Value,
                                                                         left.Namespace, right.Value, right.Namespace);
                }
            }

            return(result);
        }