Convert IDictionary to Dictionary
Posted
by
croisharp
on Stack Overflow
See other posts from Stack Overflow
or by croisharp
Published on 2011-06-21T07:57:33Z
Indexed on
2011/06/21
8:22 UTC
Read the original article
Hit count: 205
I have to convert System.Collections.Generic.IDictionary<string, decimal>
to System.Collections.Generic.Dictionary<string, decimal>
, and i can't. I tried the ToDictionary method and can't specify right arguments.
I've tried the following:
// my dictionary is PlannedSurfaces (of type IDictionary<string, decimal>)
blabla.ToDictionary<string, decimal>(localConstruction.PlannedSurfaces)
© Stack Overflow or respective owner