I have the following error:
Library.fs(86, 40): [FS0193] Type constraint mismatch. The type 'struct (DateTime * Intervals * float * float) option list' is not compatible with type 'Collections.Generic.List<struct (DateTime * Intervals * float * float)>'
The issue is that the F# generates a struct option list and the C# is expecting an IEnumerable with the same types instead.
How can that be converted?
Edit: here is the full error message:
Library.fs(80, 40): [FS0001] The type 'struct (DateTime * Intervals * float * float) option list' is not compatible with the type 'Collections.Generic.List' Library.fs(80, 40): [FS0193] Type constraint mismatch. The type 'struct (DateTime * Intervals * float * float) option list' is not compatible with type 'Collections.Generic.List' Library.fs(81, 16): [FS0001] The type ''a option' does not match the type 'unit'
If I fill the structure with fields I know are not optional, I get the same error:
struct (DateTime.MinValue, Intervals.Tick, 0.0, 0.0)
Screenshot added:
Edit:
I added the ToList() conversion, but it didn't help: