dotnet/runtime

Incorrect use of DisableMediaInsertionPrompt

Open

#28,605 opened on 2019年2月1日

GitHub で見る
 (7 comments) (0 reactions) (0 assignees)C# (5,445 forks)batch import
area-System.IOhelp wanted

Repository metrics

Stars
 (17,886 stars)
PR merge metrics
 (平均マージ 12d 11h) (30d で 661 merged PRs)

説明

Unless I'm very much confused, it appears that the FileSystemEnumerator constructor uses DisableMediaInsertionPrompt incorrectly such that it will do nothing because it calls 'new DisableMediaInsertionPrompt()' instead of DisableMediaInsertionPrompt.Create().

I just happened to notice this while scrolling through the code. I don't know exactly in which situations the undesirable media prompt would occur and don't have a particular need for this to be fixed.

コントリビューターガイド