Hashtable имеет < /p>
Код: Выделить всё
key "ids" and its values are [1,2,3]
List ids= (List)hashtable["ids"];
< /code>
При попытке разыграть возникает ошибка. Он говорит < /p>
Unable to cast object of type 'Newtonsoft.Json.Linq.JArray' to type 'System.Collections.Generic.List`1[System.Int64]'.
Подробнее здесь: https://stackoverflow.com/questions/243 ... ts-to-list
Мобильная версия