は、それが使用シナリオにタイププロバイダを経由してジェネリック型の作成
#r @".\bin\Debug\SampleTypeProvider.dll"
type A = SampleTypeProvider.A
type intA = A<int>
type strA = A<str>
そして、それがある場合にになりますように
[<TypeProvider>]
type SampleTypeProvider(config: TypeProviderConfig) as this =
...
//the below would be the generated type
type A<'b>() =
member this.C() : 'b = ...
member this.D() : 'b = ...
//
...
[<assembly:TypeProviderAssembly>]
do()
....
ように、タイププロバイダを経由してジェネリック型を作成することが可能です可能 - どのように私はそれに近づけることができます。
sigh。私はあなたが与えたものを期待していたのとは別の答えを期待していました。 – robkuz