2 writes to prefix
System.Private.Xml (2)
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
494prefix = string.Empty; 542this.prefix = prefix;
36 references to prefix
System.Private.Xml (36)
System\Xml\Core\XmlTextReaderImpl.cs (21)
897return _curNode.prefix; 4403_lastPrefix = _curNode.prefix; 4471IDtdAttributeListInfo? attlistInfo = _dtdInfo.LookupAttributeList(_curNode.localName, _curNode.prefix); 4486IDtdAttributeInfo? attributeInfo = attlistInfo.LookupAttribute(attr.prefix, attr.localName); 4550int prefLen = startTagNode.prefix.Length; 4564if (startTagNode.prefix.Length == 0) 4575if (!chars.AsSpan(_ps.charPos).StartsWith(startTagNode.prefix) || 4919if (attr.prefix.Length == 0) 4930if (Ref.Equal(attr.prefix, _xmlNs)) 4935else if (Ref.Equal(attr.prefix, _xml)) 4980if (_curNode.prefix.Length == 0) 4995if (at.type == XmlNodeType.Attribute && at.prefix.Length > 0) 7780string? ns = _namespaceManager.LookupNamespace(node.prefix); 7787Throw(SR.Xml_UnknownNs, node.prefix, node.LineNo, node.LinePos); 8842if (Ref.Equal(_nodes[i].localName, atomizedName) && _nodes[i].prefix.Length == 0) 9230(object)_nodes[i].prefix == (object)prefix) 9273(((object?)_nodes[i].prefix == (object?)prefix) || ((object?)_nodes[i].ns == (object?)ns && ns != null))) 9306if (attr.prefix.Length == 0) 9316if (_nodes[_index].prefix.Length == 0) 9326if (Ref.Equal(attr.prefix, _xmlNs)) 9337if (_nodes[i].prefix.Equals(pref))
System\Xml\Core\XmlTextReaderImplAsync.cs (9)
1979_lastPrefix = _curNode.prefix; 2064int prefLen = startTagNode.prefix.Length; 2086int prefLen = startTagNode.prefix.Length; 2101int prefLen = startTagNode.prefix.Length; 2106if (startTagNode.prefix.Length == 0) 2117if (!chars.AsSpan(_ps.charPos).StartsWith(startTagNode.prefix) || 2545if (attr.prefix.Length == 0) 2556if (Ref.Equal(attr.prefix, _xmlNs)) 2561else if (Ref.Equal(attr.prefix, _xml))
System\Xml\Core\XmlTextReaderImplHelpers.cs (6)
475[MemberNotNull(nameof(prefix))] 488[MemberNotNull(nameof(prefix))] 669if (prefix.Length == 0) 675nameWPrefix = nt.Add($"{prefix}:{localName}"); 744prefix = nodeData.prefix; 763prefix2 = nodeData.prefix;