F# record in C#

Hi,

When declaring a record in F# and using it from C# it is not converted to a C# record, why is that?

Best
Jesper

Records existed in F# first, and when they were added to C# they weren’t designed to be compatible with F# records. They probably have some differences that mean they’re not interchangeable, I’m not sure.

Here’s some possibly relevant discussion: Add To Record Codegen CLI shape to allow C# 9.0 `with` keyword interop · Issue #903 · fsharp/fslang-suggestions · GitHub