dotnet/runtime

Incorrect use of DisableMediaInsertionPrompt

Open

#28 605 ouverte le 1 févr. 2019

Voir sur GitHub
 (7 commentaires) (0 réactions) (0 assignés)C# (5 445 forks)batch import
area-System.IOhelp wanted

Métriques du dépôt

Stars
 (17 886 stars)
Métriques de merge PR
 (Merge moyen 12j 11h) (661 PRs mergées en 30 j)

Description

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.

Guide contributeur