Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public void Add(Type type, SoapAttributes attributes)
 {
     Add(type, string.Empty, attributes);
 }