До сих пор, у меня были некоторые проблемы с файлом Defualt.rd в моем приложении UWP. Мне нужно определить Dictinary> в файл, но все, что я пробовал, я потерпел неудачу. Вещи, которые я пробовал:Как определить Dictinary <Guid, List <Exception>> для Runtime Directives (Default.rd) в UWP?
<TypeInstantiation Name="Dictionary" Serialize="Required All" Arguments="System.Guid, System.Collections.Generic.List[System.Exception]" Dynamic="Required All" DataContractJsonSerializer="Required All" DataContractSerializer="Required All" />
<TypeInstantiation Name="Dictionary" Serialize="Required All" Arguments="System.Guid, System.Collections.Generic.List`1[System.Exception]" Dynamic="Required All" DataContractJsonSerializer="Required All" DataContractSerializer="Required All"
Это сообщение исключения бросали из SessionStateService о приостановлении:
SerializationCodeIsMissingForType, System.Collections.Generic.Dictionary 2[System.Guid,System.Collections.Generic.List
1 [System.Exception]]
Я прочитал страницу MSDN (here) для директив времени выполнения, но ничего не поняла, это было так сложно. Я могу определить один из названных типов, таких как List или Dictinary, но не смог понять Dictionary>.