Ejemplo n.º 1
0
        protected override void InternalAssignFrom(DefaultableMulti other)
        {
            base.InternalAssignFrom(other);
            DataContractDescriptor otherDescriptor = other as DataContractDescriptor;

            if (otherDescriptor != null)
            {
                this.IsReference = otherDescriptor.IsReference;
                this.Namespace   = otherDescriptor.Namespace;
            }
        }
Ejemplo n.º 2
0
        protected override bool InternalEqualsTo(DefaultableMulti other)
        {
            bool equalsTo = base.InternalEqualsTo(other);
            DataContractDescriptor otherDescriptor = other as DataContractDescriptor;

            equalsTo &= otherDescriptor != null;
            if (equalsTo)
            {
                return(this.IsReference == otherDescriptor.IsReference &&
                       Util.StringEqual(this.Namespace, otherDescriptor.Namespace, true));
            }

            return(equalsTo);
        }