Class ItemPathNode
Node of an object model path pointing to a list item
Inherited Members
Namespace: DuetControlServer.Model
Assembly: DuetControlServer.dll
Syntax
public class ItemPathNode
Remarks
This is necessary for the case of model items changing in a collection
Constructors
ItemPathNode(string, int, IList)
Constructor of this class
Declaration
public ItemPathNode(string name, int index, IList list)
Parameters
Type | Name | Description |
---|---|---|
string | name | List name |
int | index | Index of the changed item |
IList | list | Reference to the list |
Fields
Index
Index of the item
Declaration
public readonly int Index
Field Value
Type | Description |
---|---|
int |
List
Internal list reference
Declaration
public readonly IList List
Field Value
Type | Description |
---|---|
IList |
Name
Name of the list
Declaration
public readonly string Name
Field Value
Type | Description |
---|---|
string |
Methods
Equals(object?)
Check if this instance equals another
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | Other instance |
Returns
Type | Description |
---|---|
bool | If this instance equals obj |
Overrides
GetHashCode()
Compute a hash code for this instance
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
ToString()
Convert an item node to a string (for debugging)
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String representation of this node |