Show / Hide Table of Contents

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 Source

ScriptData(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.String code

The Code to run

System.Collections.Generic.IEnumerable<System.String> imports

The imports to include. For example "System.IO".

System.Collections.Generic.IEnumerable<System.String> references

The assembly references to include. For example "MyAssembly" for "MyAssembly.dll"

Properties

| Improve this Doc View Source

Code

The Script code

Declaration
public string Code { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Imports

The Script Imports

Declaration
public List<string> Imports { get; set; }
Property Value
Type Description
System.Collections.Generic.List<System.String>
| Improve this Doc View Source

References

The Script References

Declaration
public List<string> References { get; set; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

Methods

| Improve this Doc View Source

Equals(Object)

Overridden Equality constructor

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The object to compare

Returns
Type Description
System.Boolean

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.Int32

The HashCode over the Code, Imports and References. Imports and References are order sensitive.

Overrides
System.Object.GetHashCode()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX