Esempio n. 1
0
    internal static string ComponentUrl(System.Type type)
    {
        if (!s_PrefsLoaded)
        {
            LoadPreferences();
        }

        switch (s_DocumentationSource)
        {
        case DocumentationSource.Local:
            return(new System.Uri(
                       Path.Combine(Path.Combine(s_DocumentationPath, VersionInfo.version), VersionInfo.ComponentUrl(type, false))).AbsoluteUri);

        default:
            return(VersionInfo.ComponentUrl(type));
        }
    }