ExistsFile() public method

public ExistsFile ( string path ) : bool
path string
return bool
Esempio n. 1
0
        bool IsProfilerInstalled(RegistryKey inprocServer32Key, string expectedFileDesc)
        {
            if (inprocServer32Key == null)
            {
                return(false);
            }

            var profPath = (string)EnvironmentRepository.GetRegistryValue(inprocServer32Key, null);

            if (!EnvironmentRepository.ExistsFile(profPath))
            {
                return(false);
            }

            return(EnvironmentRepository.GetFileDescription(profPath) == expectedFileDesc);
        }