public EncodedAttributes(MemberInfo memberInfo, SoapAttributes soapAtts) : this(memberInfo) { if (soapAtts == null) { return; } Ignore = soapAtts.SoapIgnore; if (!Ignore) { SoapElement = soapAtts.SoapElement; SoapAttribute = soapAtts.SoapAttribute; SoapEnum = soapAtts.SoapEnum; DefaultValue = (soapAtts.SoapDefaultValue == null) ? null : new DefaultValueAttribute(soapAtts.SoapDefaultValue); } }
public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); }