public static string mapFile(string fileToMap, Control hostControl) { if (hostControl != null) { return((string)hostControl.invokeOnThread(() => { if (fileToMap != null && false == File.Exists(fileToMap)) { var resolvedFileMapping = new resolvedFileMapping(fileToMap); if (resolvedFileMapping.resolveFileMapping()) { return resolvedFileMapping.sMappedFile; } else { DI.log.error( "in SourceCodeMappingsUtils.mapFile, could not map file: {0}", fileToMap); } } return fileToMap; })); } return(mapFile(fileToMap)); }
public static string mapFile(string fileToMap,Control hostControl) { if (hostControl != null) return (string) hostControl.invokeOnThread(() => { if (fileToMap != null && false == File.Exists(fileToMap)) { var resolvedFileMapping = new resolvedFileMapping(fileToMap); if (resolvedFileMapping.resolveFileMapping()) return resolvedFileMapping.sMappedFile; else DI.log.error( "in SourceCodeMappingsUtils.mapFile, could not map file: {0}", fileToMap); } return fileToMap; }); return mapFile(fileToMap); }