How can I return a Dictionary from F# to C# without having to include FSharp.Core?

Posted by Benjol on Stack Overflow See other posts from Stack Overflow or by Benjol
Published on 2010-04-14T11:20:03Z Indexed on 2010/04/14 11:23 UTC
Read the original article Hit count: 211

Filed under:
|
|

I'm trying to return a IDictionary<int,int> (created with dict tuplist) from F# to C#, but it says that I must include a reference to FSharp.Core because of System.Collections.IStructuralEquatable.

I've tried returning a Dictionary<_,_>(dict tuplist), but that doesn't make any difference.

I even tried Dictionary<_,_>(dict tuplist, HashIdentity.Reference), but that says that int is a struct...

© Stack Overflow or respective owner

Related posts about F#

Related posts about c#