Esempio n. 1
0
 public void SetReferenceSearchPaths(ImmutableArray <string> paths)
 {
     MetadataFileReferenceResolver.ValidateSearchPaths(paths, "paths");
     _options = _options.WithSearchPaths(paths);
 }
Esempio n. 2
0
 internal abstract Script Create(string code, ScriptOptions options, Type globalsType, Type returnType);
Esempio n. 3
0
 public void SetReferenceSearchPaths(params string[] paths)
 {
     _options = _options.WithSearchPaths(paths);
 }
Esempio n. 4
0
 public void SetReferenceSearchPaths(ImmutableArray <string> paths)
 {
     _options = _options.WithSearchPaths(paths);
 }
Esempio n. 5
0
 internal void SetNamespaces(IEnumerable <string> namespaces)
 {
     _options = _options.WithNamespaces(namespaces);
 }
Esempio n. 6
0
 public void ImportNamespace(string @namespace)
 {
     ScriptEngine.ValidateNamespace(@namespace);
     _options = _options.AddNamespaces(@namespace);
 }
Esempio n. 7
0
 internal void SetReferences(IEnumerable <MetadataReference> references)
 {
     _options = _options.WithReferences(references);
 }
Esempio n. 8
0
 /// <summary>
 /// Creates a new instance of a script of this type.
 /// </summary>
 internal abstract Script Make(string code, string path, ScriptOptions options, Type globalsType, Type returnType, ScriptBuilder builder, Script previous);
Esempio n. 9
0
 /// <summary>
 /// Creates a new version of this script with the specified options.
 /// </summary>
 public Script WithOptions(ScriptOptions options)
 {
     return(this.With(options: options));
 }