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; } }
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); }