예제 #1
0
        private string ToPath(string path, out string prefix)
        {
            if (path == null)
            {
                prefix = null;
                return(null);
            }
            string realPath = HostSystem.FirstExisting(path, RuntimeDirectories, out prefix);

            if (realPath != null)
            {
                return(realPath);
            }
            return(HostSystem.Combine(prefix, path));
        }