ResolveUri() public method

Rresolves the absolute URI from the base and relative URIs.
public ResolveUri ( Uri baseUri, string relativeUri ) : Uri
baseUri System.Uri The base URI used to resolve the relative URI
relativeUri string The URI to resolve. The URI can be absolute or relative. /// If absolute, this value effectively replaces the baseUri value. If relative, it /// combines with the baseUri to make an absolute URI.
return System.Uri
        /// <summary>
        /// Resolve the location of the indicated <see cref="SchemaRelease"/> (and
        /// any that it imports) to the schema set using the given XML catalog to
        /// resolve the schema location.
        /// </summary>
        /// <param name="release">The <see cref="SchemaRelease"/> to be added.</param>
        /// <param name="catalog">The <see cref="Catalog"/> to resolve with.</param>
        public void Add(SchemaRelease release, Catalog catalog)
        {
            List<SchemaRelease>	imports = release.ImportSet;

            foreach (SchemaRelease schema in imports) {
                if (!schemas.Contains (schema)) {
                    Uri			uri = catalog.ResolveUri (null, schema.NamespaceUri);

                    if (uri != null) {
                        schemaSet.Add (schema.NamespaceUri, Unwrap (uri.LocalPath));
                        schemas.Add (schema);
                    }
                    else
                        log.Fatal ("Failed to resolve schema for '" + schema.NamespaceUri + "'");
                }
            }
        }