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

◆ GetSchemaElementDecl()

SchemaElementDecl System.Xml.XmlDocument.GetSchemaElementDecl ( XmlElement elem)
inlineprivate

Definition at line 830 of file XmlDocument.cs.

831 {
833 if (dtdSchemaInfo != null)
834 {
835 XmlQualifiedName key = new XmlQualifiedName(elem.LocalName, (dtdSchemaInfo.SchemaType == SchemaType.DTD) ? elem.Prefix : elem.NamespaceURI);
836 if (dtdSchemaInfo.ElementDecls.TryGetValue(key, out var value))
837 {
838 return value;
839 }
840 }
841 return null;
842 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
SchemaInfo? DtdSchemaInfo
virtual string NamespaceURI
Definition XmlNode.cs:139

References System.Xml.XmlDocument.DtdSchemaInfo, System.key, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Xml.XmlDocument.AddDefaultAttributes(), and System.Xml.XmlDocument.GetDefaultAttribute().