コード例 #1
0
 public Script(string code, IFileHandler fileHandler)
 {
     _rand        = new Random();
     _environment = new ScriptEnvironment();
     _code        = code;
     _settings    = ScriptSettings.Default;
     _fileHandler = fileHandler;
 }
コード例 #2
0
 public Script(string code, ScriptSettings settings, IFileHandler fileHandler) : this(code, fileHandler)
 {
     _settings = settings;
 }
コード例 #3
0
 public Script(string code, ScriptSettings settings) : this(code, settings, new FileHandler())
 {
 }