Westwind.Scripting icon indicating copy to clipboard operation
Westwind.Scripting copied to clipboard

Multiple CompileClass calls with a single CSharpScriptExecution instance?

Open jfcardinal opened this issue 1 year ago • 0 comments

Let's say I have two different classes that I will compile with CompileClass(). Can I compile them using one instance of CSharpScriptExecution, or do I need a new instance of CSharpScriptExecution for each class?

When I tried to use a single instance of CSharpScriptExecution, the second call to CompileClass() returned an instance of the first class, not the second.

Before each call to CompileClass(), I set the GeneratedClassName to a new, unique name.

jfcardinal avatar Jan 23 '24 18:01 jfcardinal