private bool ValidateFile(IStorageFile file) { if (file.GetExtension() != ".exe") { return false; } var lowerCaseFileName = file.GetFileName().ToLowerInvariant(); return !blacklist.Any(e => lowerCaseFileName.Contains(e)); }