Esempio n. 1
0
        static public void Initialize()
        {
            if (isInitialized)
            {
                return;
            }
            isInitialized = true;

            // Create Evaluator
            evaluatorDefaultReportPrinter = new Mono.CSharp.ConsoleReportPrinter();
            var settings = new Mono.CSharp.CompilerSettings();

//                settings.AssemblyReferences = new List<string> {
//                    Assembly.GetExecutingAssembly().FullName
//                };
//                settings.LoadDefaultReferences = false;
            evaluatorCtx = new Mono.CSharp.CompilerContext(
                settings, evaluatorDefaultReportPrinter);
            evaluatorInstance = new Mono.CSharp.Evaluator(evaluatorCtx);

            ReferenceAllAssemblies();
            SetUsings();

            Log.Initialize();
            Inspector.Initialize();
        }
Esempio n. 2
0
        static public void Initialize()
        {
            if (isInitialized)
            {
                return;
            }
            isInitialized = true;

            ReferenceAllAssemblies();
            SetUsings();

            Log.Initialize();
            Inspector.Initialize();
        }
Esempio n. 3
0
        static public void Initialize()
        {
            if (isInitialized)
            {
                return;
            }
            isInitialized = true;

            Mono.Initialize();
            SetUsings();

            Log.Initialize();
            Inspector.Initialize();

            Evaluate("null;");
        }