[A] System.Collections.Generic.Dictionary 2[System.String,System.Collections.Generic.List
1 [DisplayAllQuestionsTable]] не может быть приведен к [B] System.Collections.Generic.Dictionary 2[System.String,System.Collections.Generic.List
1 [DisplayAllQuestionsTable]].Тип A происходит от «mscorlib, версия = 4.0.0.0, культура = нейтральная, PublicKeyToken = b77a5c561934e089» в контексте «LoadNeither» в местоположении
Синтаксис моего словаря:
Dictionary<string, List<DisplayAllQuestionsTable>> tPages=tPages =
new Dictionary<string, List<DisplayAllQuestionsTable>>();
Когда я пытаюсь получить его из сеанса:
tPages = (Dictionary<string, List<DisplayAllQuestionsTable>>)Session["ThreadPage"]; // i get an exception here
Unable to cast object of type [
System.String
, System.Collections.Generic.List 1[DisplayAllQuestionsTable]]' to type '**System.Collection**s.Generic.Dictionary
2