Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let concretizeType (funcInterface : Type) ilType =
- let rec getType ilType =
- let createIFunc inType outType = funcInterface.MakeGenericType([| inType; outType |])
- match ilType with
- | ILInt -> typeof<int>
- | ILBool -> typeof<bool>
- | ILFunc(inputIlType, outputIlType) ->
- createIFunc (getType inputIlType) (getType outputIlType)
- getType ilType
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement