dotnet/runtime

Incorrect use of DisableMediaInsertionPrompt

Open

#28,605 创建于 2019年2月1日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)C# (5,445 fork)batch import
area-System.IOhelp wanted

仓库指标

Star
 (17,886 star)
PR 合并指标
 (平均合并 12天 11小时) (30 天内合并 661 个 PR)

描述

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.

贡献者指南