YFunction Constructor
YFunction()
Initializes a new instance of the YFunction class.
This constructor is equivalent to YFunction(true).
Declaration
YFunction(bool)
Initializes a new instance of the YFunction class.
Specifies whether the YFunction object should be created in a way that allows the
compiled functions (in-memory assemblies) be unloaded.
When the Disposable parameter is true, an in-memory assembly is created
another AppDomain which is unloaded from the application when the YFunction
object goes out of scope. If the Disposable parameter is false, then the in-memory
created assemblies cannot be unloaded until the application is terminated. Note
that an AppDomain is used only if the current permission set allows. Web applications
always create function assemblies in the current AppDomain.
Declaration
public YFunction(bool Disposable)
Public Sub New(Disposable As Boolean)
Parameters
| Type |
Name |
Description |
| bool |
Disposable |
|