PackageExplorerViewModel.ViewContentCommand.IsBinaryFile C# (CSharp) Méthode

IsBinaryFile() private static méthode

private static IsBinaryFile ( string path ) : bool
path string
Résultat bool
        private static bool IsBinaryFile(string path) {
            // TODO: check for content type of the file here
            string extension = Path.GetExtension(path).ToUpper(CultureInfo.InvariantCulture);
            return String.IsNullOrEmpty(extension) || BinaryFileExtensions.Any(p => p.Equals(extension));
        }