System.Runtime.Serialization.Formatters.Soap.Attr.ProcessTypeAttribute C# (CSharp) Метод

ProcessTypeAttribute() статический приватный Метод

static private ProcessTypeAttribute ( Type type, SoapAttributeInfo attributeInfo ) : void
type System.Type
attributeInfo SoapAttributeInfo
Результат void
        internal static void ProcessTypeAttribute(Type type, SoapAttributeInfo attributeInfo)
        {
            SoapTypeAttribute attr = (SoapTypeAttribute)
                                     InternalRemotingServices.GetCachedSoapAttribute(type);

            if (attr.Embedded)
                attributeInfo.m_attributeType |= SoapAttributeType.Embedded;

            String xmlName, xmlNamespace;

            if (SoapServices.GetXmlElementForInteropType(type, out xmlName, out xmlNamespace))
            {
                attributeInfo.m_attributeType |= SoapAttributeType.XmlElement;
                attributeInfo.m_elementName = xmlName;
                attributeInfo.m_nameSpace = xmlNamespace;
            }

            if (SoapServices.GetXmlTypeForInteropType(type, out xmlName, out xmlNamespace))
            {
                attributeInfo.m_attributeType |= SoapAttributeType.XmlType;
                attributeInfo.m_typeName = xmlName;
                attributeInfo.m_typeNamespace = xmlNamespace;
            }

        } // ProcessTypeAttribute

Usage Example

Пример #1
0
        private SoapAttributeInfo GetTypeAttributeInfo()
        {
            if (this.arrayElemObjectInfo != null)
            {
                return(this.arrayElemObjectInfo.GetTypeAttributeInfo());
            }
            SoapAttributeInfo attributeInfo = null;

            attributeInfo = new SoapAttributeInfo();
            Attr.ProcessTypeAttribute(this.objectType, attributeInfo);
            return(attributeInfo);
        }
All Usage Examples Of System.Runtime.Serialization.Formatters.Soap.Attr::ProcessTypeAttribute