Example #1
0
 public void SetReferenceSearchPaths(ImmutableArray <string> paths)
 {
     MetadataFileReferenceResolver.ValidateSearchPaths(paths, "paths");
     _options = _options.WithSearchPaths(paths);
 }
Example #2
0
 internal abstract Script Create(string code, ScriptOptions options, Type globalsType, Type returnType);
Example #3
0
 public void SetReferenceSearchPaths(params string[] paths)
 {
     _options = _options.WithSearchPaths(paths);
 }
Example #4
0
 public void SetReferenceSearchPaths(ImmutableArray <string> paths)
 {
     _options = _options.WithSearchPaths(paths);
 }
Example #5
0
 internal void SetNamespaces(IEnumerable <string> namespaces)
 {
     _options = _options.WithNamespaces(namespaces);
 }
Example #6
0
 public void ImportNamespace(string @namespace)
 {
     ScriptEngine.ValidateNamespace(@namespace);
     _options = _options.AddNamespaces(@namespace);
 }
Example #7
0
 internal void SetReferences(IEnumerable <MetadataReference> references)
 {
     _options = _options.WithReferences(references);
 }
Example #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);
Example #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));
 }