G
Guest
I want to be able to write a method that varies from instance to instance of
a class. Basically I have a formula class. Somebody inputs a formula and I
parse it and generate the code to calculate it. I have looked at
Reflections.Emit. The problem is that it requires creating a new type
everytime you want to create a new procedure. This could be very costly as
there can be many formulas. Is there a way to generate only a method and get
a pointer for it, and call it from within my class or some other workaround
for this? Thanks.
Landagen
a class. Basically I have a formula class. Somebody inputs a formula and I
parse it and generate the code to calculate it. I have looked at
Reflections.Emit. The problem is that it requires creating a new type
everytime you want to create a new procedure. This could be very costly as
there can be many formulas. Is there a way to generate only a method and get
a pointer for it, and call it from within my class or some other workaround
for this? Thanks.
Landagen