在F#中,如何实例化泛型类型定义?

在F#中,如何实例化泛型类型定义?,f#,F#,如何在F#中实例化泛型类型定义?(即IsGenericTypeDefinition属性返回true的类型类的实例) C#中的示例: Type d1=typeof(字典); 注: typeof 不起作用。”T和'U被解释为对象。让T=typedefof let t = typedefof<Dictionary<_,_>> t.IsGenericTypeDefinition // true t、 IsGenericTypeDefinition//true 这与type

如何在F#中实例化泛型类型定义?(即IsGenericTypeDefinition属性返回true的类型类的实例)

C#中的示例:

Type d1=typeof(字典);
注:

typeof
不起作用。”T和'U被解释为对象。

让T=typedefof
let t = typedefof<Dictionary<_,_>>
t.IsGenericTypeDefinition // true
t、 IsGenericTypeDefinition//true

这与
typeof
不同。请注意<代码> DEF中间:(

),我想。@ Idjjn我已经尝试过了。它不起作用,因为t被解释为对象。更新问题
typeof<Dictionary<'T,'U>> 
let t = typedefof<Dictionary<_,_>>
t.IsGenericTypeDefinition // true