F#类型转换为C#记录类型。

huangapple go评论64阅读模式
英文:

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

问题

F#中的记录类型在从C#调用者消耗时似乎不能直接映射到C#记录类型。是否有任何在F#中的替代类型可以直接转换为C#记录类型?

英文:

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?

答案1

得分: 2

C#的记录提案与F#的实现不同,虽然目前在C#中没有使用with关键字的方式,但有问题跟踪了解决双方的路线图(903904在Github上)。

英文:

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).

huangapple
  • 本文由 发表于 2023年8月4日 06:47:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76832006.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定