Class ScriptData
A holder for a Script to run for a clause
Inheritance
System.Object
ScriptData
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.CST.OAT
Assembly: OAT.dll
Syntax
public class ScriptData
Constructors
| Improve this Doc View SourceScriptData(String, IEnumerable<String>, IEnumerable<String>)
The constructor for a Script to run for a clause.
Declaration
public ScriptData(string code = null, IEnumerable<string> imports = null, IEnumerable<string> references = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
code | The Code to run |
System. |
imports | The imports to include. For example "System.IO". |
System. |
references | The assembly references to include. For example "MyAssembly" for "MyAssembly.dll" |
Properties
| Improve this Doc View SourceCode
The Script code
Declaration
public string Code { get; set; }
Property Value
Type | Description |
---|---|
System. |
Imports
The Script Imports
Declaration
public List<string> Imports { get; set; }
Property Value
Type | Description |
---|---|
System. |
References
The Script References
Declaration
public List<string> References { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceEquals(Object)
Overridden Equality constructor
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj | The object to compare |
Returns
Type | Description |
---|---|
System. |
True if obj is a ScriptData and the Code, Imports and References match. |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Get the HashCode for this ScriptData
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
The HashCode over the Code, Imports and References. Imports and References are order sensitive. |
Overrides
System.Object.GetHashCode()