static CoreBase() { TheAssemblyCompilationsOptions = new CSharpCompilationOptions ( OutputKind.DynamicallyLinkedLibrary ); // this is a hack to allow the compilation to contain the non-public members TheAssemblyCompilationsOptions = (CSharpCompilationOptions)TheAssemblyCompilationsOptions.CallMethod("WithMetadataImportOptions", true, false, (byte)2); }
static void StaticInit() { if (_initialized) { return; } TheAssemblyCompilationsOptions = new CSharpCompilationOptions ( OutputKind.DynamicallyLinkedLibrary ); // this is a hack to allow the compilation to contain the non-public members TheAssemblyCompilationsOptions = (CSharpCompilationOptions)TheAssemblyCompilationsOptions.CallMethod("WithMetadataImportOptions", true, false, (byte)2); _initialized = true; }