-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunOption.cs
More file actions
70 lines (66 loc) · 3.55 KB
/
RunOption.cs
File metadata and controls
70 lines (66 loc) · 3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System.Collections.Generic;
namespace DynamicScriptExecutor
{
public enum ScriptLanguage
{
CSharp,
VisualBasic
}
public class ExecOption
{
private object[] paramList;
private ICollection<string> extraDllFolderList;
private ICollection<string> extraDllFileList;
private string methodName;
private string className;
private InstanceObject instanceObject;
private ScriptLanguage scriptLanguage;
private bool nonPublic;
private bool isStatic;
private bool addDefaultUsingWhenGeneratingClass;
private bool addExtraUsingWhenGeneratingClass;
private bool includeDllInBaseFolder;
public ExecOption(object[] paramList = null
, ICollection<string> extraDllFolderList = null
, ICollection<string> extraDllFileList = null
, string methodName = "Main"
, string className = "Exec"
, InstanceObject instanceObject = null
, ScriptLanguage scriptLanguage = ScriptLanguage.CSharp
, bool nonPublic = false
, bool isStatic = false
, bool addDefaultUsingWhenGeneratingClass = true
, bool addExtraUsingWhenGeneratingClass = true
, bool includeDllInBaseFolder = true)
{
this.paramList = paramList;
this.extraDllFolderList = extraDllFolderList;
this.extraDllFileList = extraDllFileList;
this.methodName = methodName;
this.className = className;
this.instanceObject = instanceObject;
this.scriptLanguage = scriptLanguage;
this.nonPublic = nonPublic;
this.isStatic = isStatic;
this.addDefaultUsingWhenGeneratingClass = addDefaultUsingWhenGeneratingClass;
this.addExtraUsingWhenGeneratingClass = addExtraUsingWhenGeneratingClass;
this.includeDllInBaseFolder = includeDllInBaseFolder;
}
public object[] ParamList { get => paramList; set => paramList = value; }
public ICollection<string> ExtraDllFolderList { get => extraDllFolderList; set => extraDllFolderList = value; }
public ICollection<string> ExtraDllFileList { get => extraDllFileList; set => extraDllFileList = value; }
public string MethodName { get => methodName; set => methodName = value; }
public string ClassName { get => className; set => className = value; }
public InstanceObject InstanceObject { get => instanceObject; set => instanceObject = value; }
public ScriptLanguage ScriptLanguage { get => scriptLanguage; set => scriptLanguage = value; }
public bool NonPublic { get => nonPublic; set => nonPublic = value; }
public bool IsStatic { get => isStatic; set => isStatic = value; }
public bool AddDefaultUsingWhenGeneratingClass { get => addDefaultUsingWhenGeneratingClass; set => addDefaultUsingWhenGeneratingClass = value; }
public bool AddExtraUsingWhenGeneratingClass { get => addExtraUsingWhenGeneratingClass; set => addExtraUsingWhenGeneratingClass = value; }
public bool IncludeDllInBaseFolder { get => includeDllInBaseFolder; set => includeDllInBaseFolder = value; }
public ExecOption Copy()
{
return new ExecOption(this.ParamList, this.ExtraDllFolderList, this.ExtraDllFileList, this.MethodName, this.ClassName, this.InstanceObject, this.ScriptLanguage, this.NonPublic, this.IsStatic, this.addDefaultUsingWhenGeneratingClass, this.addExtraUsingWhenGeneratingClass, this.includeDllInBaseFolder);
}
}
}