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