Guest User

Untitled

a guest
Mar 25th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Cannot cast from source type to destination type.
  2.  
  3. public void AddTickData(List<Dictionary<string, string>> ticks)
  4. {
  5. if (!data.ContainsKey("tickData"))
  6. {
  7. data.Add("tickData", ticks);
  8. }
  9. else
  10. {
  11. // Got an exception here:
  12. List<Dictionary<string, string>> previousTicks = (List<Dictionary<string, string>>)data ["tickData"];
  13. // etc.
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment