Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LookupPrefix()

virtual ? string System.Xml.XmlNamespaceManager.LookupPrefix ( string uri)
inlinevirtualinherited

Implements System.Xml.IXmlNamespaceResolver.

Reimplemented in System.Xml.Schema.SchemaNamespaceManager, and System.Xml.XmlTextReaderImpl.NoNamespaceManager.

Definition at line 268 of file XmlNamespaceManager.cs.

269 {
270 for (int num = _lastDecl; num >= 0; num--)
271 {
272 if (string.Equals(_nsdecls[num].uri, uri))
273 {
274 string prefix = _nsdecls[num].prefix;
275 if (string.Equals(LookupNamespace(prefix), uri))
276 {
277 return prefix;
278 }
279 }
280 }
281 return null;
282 }
virtual ? string LookupNamespace(string prefix)

References System.Xml.XmlNamespaceManager._lastDecl, System.Xml.XmlNamespaceManager._nsdecls, System.Xml.XmlNamespaceManager.LookupNamespace(), System.prefix, and System.Xml.XmlNamespaceManager.NamespaceDeclaration.prefix.

Referenced by System.Xml.XmlTextReaderImpl.AddDefaultAttributeNonDtd(), System.Xml.Schema.XsdValidator.LoadSchema(), System.Xml.DocumentSchemaValidator.LookupPrefix(), System.Xml.DocumentXmlWriter.LookupPrefix(), System.Xml.XmlSubtreeReader.LookupPrefix(), System.Xml.XmlTextReaderImpl.LookupPrefix(), System.Xml.XsdValidatingReader.LookupPrefix(), System.Xml.Xsl.Runtime.XmlQueryOutput.RemapPrefix(), System.Runtime.Serialization.XPathQueryGenerator.ExportContext.SetNamespace(), and System.Xml.Schema.XmlSchema.Write().