Пример #1
0
 public void AddXmlAttribute(
     Type fieldType,
     string fieldName,
     string xmlAttribute,
     string xmlNamespace)
 {
     this._attributes[(object)SoapServices.CreateKey(xmlAttribute, xmlNamespace)] = (object)new SoapServices.XmlToFieldTypeMap.FieldEntry(fieldType, fieldName);
 }
Пример #2
0
 public void AddXmlElement(
     Type fieldType,
     string fieldName,
     string xmlElement,
     string xmlNamespace)
 {
     this._elements[(object)SoapServices.CreateKey(xmlElement, xmlNamespace)] = (object)new SoapServices.XmlToFieldTypeMap.FieldEntry(fieldType, fieldName);
 }
Пример #3
0
 public void GetFieldTypeAndNameFromXmlAttribute(
     string xmlAttribute,
     string xmlNamespace,
     out Type type,
     out string name)
 {
     SoapServices.XmlToFieldTypeMap.FieldEntry attribute = (SoapServices.XmlToFieldTypeMap.FieldEntry) this._attributes[(object)SoapServices.CreateKey(xmlAttribute, xmlNamespace)];
     if (attribute != null)
     {
         type = attribute.Type;
         name = attribute.Name;
     }
     else
     {
         type = (Type)null;
         name = (string)null;
     }
 }
Пример #4
0
 public void GetFieldTypeAndNameFromXmlElement(
     string xmlElement,
     string xmlNamespace,
     out Type type,
     out string name)
 {
     SoapServices.XmlToFieldTypeMap.FieldEntry element = (SoapServices.XmlToFieldTypeMap.FieldEntry) this._elements[(object)SoapServices.CreateKey(xmlElement, xmlNamespace)];
     if (element != null)
     {
         type = element.Type;
         name = element.Name;
     }
     else
     {
         type = (Type)null;
         name = (string)null;
     }
 }
Пример #5
0
 public static void RegisterInteropXmlType(string xmlType, string xmlTypeNamespace, Type type)
 {
     SoapServices._interopXmlTypeToType[(object)SoapServices.CreateKey(xmlType, xmlTypeNamespace)] = (object)type;
     SoapServices._interopTypeToXmlType[(object)type] = (object)new SoapServices.XmlEntry(xmlType, xmlTypeNamespace);
 }
Пример #6
0
 public static Type GetInteropTypeFromXmlType(string xmlType, string xmlTypeNamespace) => (Type)SoapServices._interopXmlTypeToType[(object)SoapServices.CreateKey(xmlType, xmlTypeNamespace)];
Пример #7
0
 public static Type GetInteropTypeFromXmlElement(string xmlElement, string xmlNamespace) => (Type)SoapServices._interopXmlElementToType[(object)SoapServices.CreateKey(xmlElement, xmlNamespace)];