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...
UPDATE
OK, ME = STUPID
I just omitted to include in my question the crucial detail: which is that I was returning my dictionary in a F# record and that is the problem. Because I added the record and the Dictionary at the same time, and I saw the IStructuralEquality, I just assumed it was the dictionary which was the problem.
Doh! Sorry...