System.Xml.XmlEntityReference.ConstructBaseURI C# (CSharp) Méthode

ConstructBaseURI() private méthode

private ConstructBaseURI ( string baseURI, string systemId ) : string
baseURI string
systemId string
Résultat string
        private string ConstructBaseURI( string baseURI, string systemId ) {
            if ( baseURI == null )
                return systemId;
            int nCount = baseURI.LastIndexOf('/')+1;
            string buf = baseURI;
            if ( nCount > 0 && nCount < baseURI.Length )
                buf = baseURI.Substring(0, nCount);
            else if ( nCount == 0 )
                buf = buf + "\\";
            return (buf + systemId.Replace('\\', '/')); 
        }