I have F# function
generateCode params
that generates a code on F#(.fs file). And I want to write Type Provider, that runs generateCode() and gives generated functions as provided.
For example, my function generated:
module Calc
open Operations
let Calculate a b = add a b
And i want to have Type Provider that provides such functionality:
type MyType = MyTypeProvider<args>
sum = MyType.Calculate a b
UPD The main problem is to add generated code to assembly and then get function names.