Class RegisterValues
Class for working with register values. Implements the INCT_RegisterValues interface.
Implements
Inherited Members
Namespace: DotNet.Interpreter.Helper
Assembly: DotNet.Interpreter.Helper.dll
Syntax
public sealed class RegisterValues : INCT_RegisterValues
Constructors
RegisterValues()
Declaration
public RegisterValues()
Properties
Count
Returns the number of register values.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int | Number of values. |
this[int]
Gets the register value at the specified index.
Declaration
public double this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the register value. |
Property Value
| Type | Description |
|---|---|
| double | The register value at the specified index. |
Exceptions
| Type | Condition |
|---|---|
| IndexOutOfRangeException | Thrown when index is out of range or values array is null. |
Methods
Add(double)
Adds a new value to the list of register values.
Declaration
public void Add(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | Value to add. |