コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public void Add(Type type, SoapAttributes attributes)
 {
     Add(type, string.Empty, attributes);
 }