AddName() public method

public AddName ( string prefix, string localName, string ns, IXmlSchemaInfo schemaInfo ) : XmlName
prefix string
localName string
ns string
schemaInfo IXmlSchemaInfo
return XmlName
示例#1
0
        internal XmlName AddXmlName(string prefix, string localName, string namespaceURI)
        {
            XmlName n = domNameTable.AddName(prefix, localName, namespaceURI);

            Debug.Assert((prefix == null) ? (n.Prefix.Length == 0) : (prefix == n.Prefix));
            Debug.Assert(n.LocalName == localName);
            Debug.Assert((namespaceURI == null) ? (n.NamespaceURI.Length == 0) : (n.NamespaceURI == namespaceURI));
            return(n);
        }