Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What F# type translates to a C# record type?

Tags:

f#

c#-to-f#

When consumed from a C# caller the record types from F# don't seem to map directly to C# record types. Is there any alternative type in F# that translates directly to a C# record type?

like image 945
Matthew MacFarland Avatar asked Oct 17 '25 07:10

Matthew MacFarland


1 Answers

The C# record proposal diverges from F#'s implementation, and while there is no current way to use the with keyword in C#, there are issues tracking the roadmap to reconcile both (903 and 904 on Github).

like image 91
Asti Avatar answered Oct 19 '25 00:10

Asti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!