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

            if (otherDescriptor != null)
            {
                this.EmitDefaultValue = otherDescriptor.EmitDefaultValue;
                this.IsRequired       = otherDescriptor.IsRequired;
                this.Order            = otherDescriptor.Order;
            }
        }
Ejemplo n.º 2
0
        protected override bool InternalEqualsTo(DefaultableMulti other)
        {
            bool equalsTo = base.InternalEqualsTo(other);
            DataMemberDescriptor otherDescriptor = other as DataMemberDescriptor;

            equalsTo &= otherDescriptor != null;
            if (equalsTo)
            {
                return(this.EmitDefaultValue.EqualsTo(otherDescriptor.EmitDefaultValue) &&
                       this.IsRequired.EqualsTo(otherDescriptor.IsRequired) &&
                       this.Order.EqualsTo(otherDescriptor.Order));
            }

            return(equalsTo);
        }