コード例 #1
0
        static void Main()
        {
            string code = File.ReadAllText(ProgramPath);

            IValidationStrategy strategy = new CodeLengthValidator();
            var compiler = new CSharpCompiler(strategy);
            compiler.Compile(code);
            compiler.Execute(EntryClassName);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: 0000duck/Fundamental-Level
        static void Main()
        {
            string code = File.ReadAllText(ProgramPath);

            IValidationStrategy strategy = new CodeLengthValidator();
            var compiler = new CSharpCompiler(strategy);

            compiler.Compile(code);
            compiler.Execute(EntryClassName);
        }