Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
VS 2012 C#で選択されたファイルの属性をスキャンするために導入された新しい方法はありますか?たとえば、ウイルス対策を作成するために、読み取り専用、システム、非表示などのファイルの属性をスキャンします。
いいえ、新しい方法はありません。古い方法は問題なく機能しました。これは、現在存在するメソッドの未テストの例です
Directory.GetFiles("path").Select(file => File.GetAttributes(file) == FileAttributes.ReadOnly);