Иногда я получаю следующую ошибку:
Товар с таким ключом уже добавлен
в System.Collections.Generic.Dictionary'2.Insert (ключ TKey, значение TValue, логическое добавление) в System.Collections.Generic.Dictionary'2.Add (ключ TKey, значение TValue)
в Microsoft.WindowsAPICodePack.Shell .PropertySystem.ShellPropertyDescriptionsCache.GetPropertyDescription (ключ PropertyKey) в Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties.PropertySystemVideo.get_FrameWidth ()
Это происходит случайно, когда я пытаюсь прочитать FrameWidth
из ShellFile:
ShellFile shellFile = ShellFile.FromFilePath(_file.FullPath);
if (shellFile.Properties.System.Video.FrameWidth.Value != null) //<- fails here
Кто-нибудь знает, почему это могло произойти?
shellFile.Properties.System.Video.FrameWidth.Value != null
- person Vladimirs   schedule 22.01.2016