RuntimeCompilerCompile Method

Compiles C# code to a raw Assembly.

Definition

Namespace: Gemstone.Expressions
Assembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.128 -- Release Build+cfed08c7efcabf54b006110ecd862a6bfcb7b819
public static byte[] Compile(
	string code,
	IEnumerable<Assembly> references,
	CSharpCompilationOptions? options = null,
	string? assemblyName = null
)

Parameters

code  String
C# code to compile.
references  IEnumerableAssembly
References to use for compilation.
options  CSharpCompilationOptions  (Optional)
Compilation options.
assemblyName  String  (Optional)
Assembly name to use.

Return Value

Byte
Raw Byte array representing compiled Assembly.

See Also