6 references to TryLookupNamespace
System.Private.Xml (6)
System\Xml\Schema\SchemaNamespacemanager.cs (1)
28if (current.Namespaces.TryLookupNamespace(prefix, out string? uri))
System\Xml\Schema\XmlSchema.cs (2)
156ignoreXS = this.Namespaces.TryLookupPrefix("xs", out _) || this.Namespaces.TryLookupNamespace(XmlReservedNs.NsXs, out _); 173if (!this.Namespaces.TryLookupPrefix("xs", out _) && !this.Namespaces.TryLookupNamespace(XmlReservedNs.NsXs, out _))
System\Xml\Serialization\Types.cs (1)
1395if (parent.Namespaces.TryLookupNamespace(ns, out string? wsdlNs) && wsdlNs != null)
System\Xml\Serialization\XmlSerializationWriter.cs (2)
510if (_namespaces.TryLookupNamespace("", out string? defaultNS)) 1446if (_namespaces.TryLookupNamespace(prefix, out oldNs) && oldNs != null && oldNs != ns)