Пример #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())
 {
 }