I have written an F# module that has a list inside:
module MyModule
type X =
{
valuex : float32
}
let
As simple as:
IList list = MyModule.l.ToList();
The reason you need the conversion method rather than a cast / implicit conversion is because an FSharpList
implements IEnumerable
but not IList
since it represents an immutable linked-list.
Note that you'll have to include FSharp.Core
as a reference in your C# project.