该FSharp.Reflection.FSharpValue.MakeRecord方法适用于匿名记录和名义记录:
let x = {| a = "b"; c = 42 |}
ley y = FSharp.Reflection.FSharpValue.MakeRecord( x.GetType(), [| "foo"; 5 |] )
> val it : obj = {a = "foo"; c = 5;}
Run Code Online (Sandbox Code Playgroud)
或者我误解了这个问题?