CreateKey() private static method

private static CreateKey ( String elementName, String elementNamespace ) : String
elementName String
elementNamespace String
return String
            public void GetFieldTypeAndNameFromXmlElement(string xmlElement, string xmlNamespace, out Type type, out string name)
            {
                FieldEntry entry = (FieldEntry)this._elements[SoapServices.CreateKey(xmlElement, xmlNamespace)];

                if (entry != null)
                {
                    type = entry.Type;
                    name = entry.Name;
                }
                else
                {
                    type = null;
                    name = null;
                }
            }
Esempio n. 2
0
 public void GetFieldTypeAndNameFromXmlAttribute(string xmlAttribute, string xmlNamespace, out Type type, out string name)
 {
     SoapServices.XmlToFieldTypeMap.FieldEntry fieldEntry = (SoapServices.XmlToFieldTypeMap.FieldEntry) this._attributes[SoapServices.CreateKey(xmlAttribute, xmlNamespace)];
     if (fieldEntry != null)
     {
         type = fieldEntry.Type;
         name = fieldEntry.Name;
         return;
     }
     type = null;
     name = null;
 }
Esempio n. 3
0
 public void AddXmlAttribute(Type fieldType, string fieldName, string xmlAttribute, string xmlNamespace)
 {
     this._attributes[SoapServices.CreateKey(xmlAttribute, xmlNamespace)] = new SoapServices.XmlToFieldTypeMap.FieldEntry(fieldType, fieldName);
 }
Esempio n. 4
0
 public void AddXmlElement(Type fieldType, string fieldName, string xmlElement, string xmlNamespace)
 {
     this._elements[SoapServices.CreateKey(xmlElement, xmlNamespace)] = new SoapServices.XmlToFieldTypeMap.FieldEntry(fieldType, fieldName);
 }
Esempio n. 5
0
 public static void RegisterInteropXmlType(string xmlType, string xmlTypeNamespace, Type type)
 {
     SoapServices._interopXmlTypeToType[SoapServices.CreateKey(xmlType, xmlTypeNamespace)] = type;
     SoapServices._interopTypeToXmlType[type] = new SoapServices.XmlEntry(xmlType, xmlTypeNamespace);
 }
Esempio n. 6
0
 public static Type GetInteropTypeFromXmlType(string xmlType, string xmlTypeNamespace)
 {
     return((Type)SoapServices._interopXmlTypeToType[SoapServices.CreateKey(xmlType, xmlTypeNamespace)]);
 }
Esempio n. 7
0
 public static Type GetInteropTypeFromXmlElement(string xmlElement, string xmlNamespace)
 {
     return((Type)SoapServices._interopXmlElementToType[SoapServices.CreateKey(xmlElement, xmlNamespace)]);
 }
Esempio n. 8
0
 public void GetFieldTypeAndNameFromXmlElement(string xmlElement, string xmlNamespace, out Type type, out string name)
 {
     SoapServices.XmlToFieldTypeMap.FieldEntry fieldEntry = (SoapServices.XmlToFieldTypeMap.FieldEntry) this._elements[(object)SoapServices.CreateKey(xmlElement, xmlNamespace)];
     if (fieldEntry != null)
     {
         type = fieldEntry.Type;
         name = fieldEntry.Name;
     }
     else
     {
         type = (Type)null;
         name = (string)null;
     }
 }
Esempio n. 9
0
 public static void RegisterInteropXmlElement(string xmlElement, string xmlNamespace, Type type)
 {
     SoapServices._interopXmlElementToType[(object)SoapServices.CreateKey(xmlElement, xmlNamespace)] = (object)type;
     SoapServices._interopTypeToXmlElement[(object)type] = (object)new SoapServices.XmlEntry(xmlElement, xmlNamespace);
 }