System.Runtime.Remoting.SoapServices.XmlToFieldTypeMap.GetFieldTypeAndNameFromXmlAttribute C# (CSharp) Method

GetFieldTypeAndNameFromXmlAttribute() public method

public GetFieldTypeAndNameFromXmlAttribute ( String xmlAttribute, String xmlNamespace, Type &type, String &name ) : void
xmlAttribute String
xmlNamespace String
type System.Type
name String
return void
            public void GetFieldTypeAndNameFromXmlAttribute(String xmlAttribute, String xmlNamespace,
                                                            out Type type, out String name)
            {
                FieldEntry field = (FieldEntry)_attributes[CreateKey(xmlAttribute, xmlNamespace)];
                if (field != null)
                {
                    type = field.Type;
                    name = field.Name;
                }
                else
                {
                    type = null;
                    name = null;
                }
            } // GetTypeFromXmlAttribute
            

Usage Example

示例#1
0
 /// <summary>Retrieves field type from XML attribute name, namespace, and the <see cref="T:System.Type" /> of the containing object.</summary>
 /// <param name="containingType">The <see cref="T:System.Type" /> of the object that contains the field. </param>
 /// <param name="xmlAttribute">The XML attribute name of the field type. </param>
 /// <param name="xmlNamespace">The XML namespace of the field type. </param>
 /// <param name="type">When this method returns, contains a <see cref="T:System.Type" /> of the field. This parameter is passed uninitialized. </param>
 /// <param name="name">When this method returns, contains a <see cref="T:System.String" /> that holds the name of the field. This parameter is passed uninitialized. </param>
 /// <exception cref="T:System.Security.SecurityException">The immediate caller does not have infrastructure permission. </exception>
 // Token: 0x0600558F RID: 21903 RVA: 0x0012EDF0 File Offset: 0x0012CFF0
 public static void GetInteropFieldTypeAndNameFromXmlAttribute(Type containingType, string xmlAttribute, string xmlNamespace, out Type type, out string name)
 {
     if (containingType == null)
     {
         type = null;
         name = null;
         return;
     }
     SoapServices.XmlToFieldTypeMap xmlToFieldTypeMap = (SoapServices.XmlToFieldTypeMap)SoapServices._xmlToFieldTypeMap[containingType];
     if (xmlToFieldTypeMap != null)
     {
         xmlToFieldTypeMap.GetFieldTypeAndNameFromXmlAttribute(xmlAttribute, xmlNamespace, out type, out name);
         return;
     }
     type = null;
     name = null;
 }
All Usage Examples Of System.Runtime.Remoting.SoapServices.XmlToFieldTypeMap::GetFieldTypeAndNameFromXmlAttribute