예제 #1
0
        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);
        }
예제 #2
0
        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;
        }