我有一系列类型
let rackStatusesPrototype : RackStatus seq
Run Code Online (Sandbox Code Playgroud)
现在我想将它分配给一个来自 C# 且是 ICollection 类型的属性,但我遇到了问题。我试过:
let test : ICollection<RackStatus> = rackStatusesPrototype :> ICollection<RackStatus>
Run Code Online (Sandbox Code Playgroud)
但它说不兼容的类型。我能做些什么?
f# ×1