Class IndexedItem<TObject, TKey>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
An item with it's index.
public sealed class IndexedItem<TObject, TKey> : IEquatable<IndexedItem<TObject, TKey>>
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
- Inheritance
-
IndexedItem<TObject, TKey>
- Implements
-
IEquatable<IndexedItem<TObject, TKey>>
Remarks
Initializes a new instance of the IndexedItem<TObject, TKey> class.
Constructors
IndexedItem(TObject, TKey, int)
An item with it's index.
public IndexedItem(TObject value, TKey key, int index)
Parameters
value
TObjectThe value.
key
TKeyThe key.
index
intThe index.
Remarks
Initializes a new instance of the IndexedItem<TObject, TKey> class.
Properties
Index
Gets the index.
public int Index { get; }
Property Value
Key
Gets the key.
public TKey Key { get; }
Property Value
- TKey
Value
Gets the value.
public TObject Value { get; }
Property Value
- TObject
Methods
Equals(IndexedItem<TObject, TKey>?)
public bool Equals(IndexedItem<TObject, TKey>? other)
Parameters
other
IndexedItem<TObject, TKey>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()