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

◆ PushNamespace()

void System.Xml.XmlSqlBinaryReader.PushNamespace ( string prefix,
string ns,
bool implied )
inlineprivate

Definition at line 2294 of file XmlSqlBinaryReader.cs.

2295 {
2296 if (prefix == "xml")
2297 {
2298 return;
2299 }
2300 int elemDepth = _elemDepth;
2302 if (value != null)
2303 {
2304 if (value.uri == ns)
2305 {
2306 if (!implied && value.implied && value.scope == elemDepth)
2307 {
2308 value.implied = false;
2309 }
2310 return;
2311 }
2313 if (prefix.Length != 0)
2314 {
2315 for (int i = 0; i < _attrCount; i++)
2316 {
2317 if (_attributes[i].name.prefix.Length != 0)
2318 {
2320 }
2321 }
2322 }
2323 }
2327 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
readonly Dictionary< string, NamespaceDecl > _namespaces
void CheckPrefixNS(string prefix, string namespaceUri)

References System.Xml.XmlSqlBinaryReader._attrCount, System.Xml.XmlSqlBinaryReader._attributes, System.Xml.XmlSqlBinaryReader._elemDepth, System.Xml.XmlSqlBinaryReader._elementStack, System.Xml.XmlSqlBinaryReader._namespaces, System.Xml.XmlSqlBinaryReader._qnameElement, System.Xml.XmlSqlBinaryReader.QName.CheckPrefixNS(), System.Xml.Dictionary, System.Xml.XmlSqlBinaryReader.AttrInfo.name, System.Xml.XmlSqlBinaryReader.ElemInfo.nsdecls, System.prefix, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Xml.XmlSqlBinaryReader.ImplReadElement(), and System.Xml.XmlSqlBinaryReader.ScanAttributes().