static void Main() { string code = File.ReadAllText(ProgramPath); IValidationStrategy strategy = new CodeLengthValidator(); var compiler = new CSharpCompiler(strategy); compiler.Compile(code); compiler.Execute(EntryClassName); }