public void SetReferenceSearchPaths(ImmutableArray <string> paths) { MetadataFileReferenceResolver.ValidateSearchPaths(paths, "paths"); _options = _options.WithSearchPaths(paths); }
internal abstract Script Create(string code, ScriptOptions options, Type globalsType, Type returnType);
public void SetReferenceSearchPaths(params string[] paths) { _options = _options.WithSearchPaths(paths); }
public void SetReferenceSearchPaths(ImmutableArray <string> paths) { _options = _options.WithSearchPaths(paths); }
internal void SetNamespaces(IEnumerable <string> namespaces) { _options = _options.WithNamespaces(namespaces); }
public void ImportNamespace(string @namespace) { ScriptEngine.ValidateNamespace(@namespace); _options = _options.AddNamespaces(@namespace); }
internal void SetReferences(IEnumerable <MetadataReference> references) { _options = _options.WithReferences(references); }
/// <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);
/// <summary> /// Creates a new version of this script with the specified options. /// </summary> public Script WithOptions(ScriptOptions options) { return(this.With(options: options)); }