16 references to ToUri
System.Private.Xml (16)
System\Xml\Core\XsdValidatingReader.cs (1)
173_validator.SourceUri = XmlConvert.ToUri(reader.BaseURI); // Not using XmlResolver.ResolveUri as it checks for relative Uris,reader.BaseURI will be absolute file paths or string.Empty
System\Xml\Dom\DocumentSchemaValidator.cs (1)
246_validator.SourceUri = XmlConvert.ToUri(_document.BaseURI);
System\Xml\Schema\NamespaceList.cs (1)
57XmlConvert.ToUri(splitString[i]); // can throw
System\Xml\Schema\Preprocessor.cs (1)
509XmlConvert.ToUri(uri); // can throw
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
306XmlConvert.ToUri(tns); // can throw 370XmlConvert.ToUri(loc); // can throw 417XmlConvert.ToUri(ns); //can throw 1546XmlConvert.ToUri(notation.Public); // can throw 1561XmlConvert.ToUri(notation.System); // can throw
System\Xml\Schema\XmlValueConverter.cs (4)
1793if (destinationType == UriType) if (TypeCode == XmlTypeCode.AnyUri) return XmlConvert.ToUri((string)value); 1869if (sourceType == StringType) if (TypeCode == XmlTypeCode.AnyUri) return XmlConvert.ToUri((string)value); 2350if (destinationType == UriType) return XmlConvert.ToUri((string)value); 2433if (sourceType == StringType) return XmlConvert.ToUri((string)value);
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
71XmlConvert.ToUri(ns);
System\Xml\XmlQualifiedName.cs (1)
138XmlConvert.ToUri(Namespace);
System\Xml\Xsl\XsltOld\Compiler.cs (1)
776XmlConvert.ToUri(nsUri);