Struct ItemWithIndex<T>
- Namespace
- Dynamic
Data .Kernel
- Assembly
- DynamicData.dll
Container for an item and it's index from a list.
Type Parameters
T
The type of the item.
- Implements
- Extension Methods
Remarks
Initializes a new instance of the ItemWithIndex<T> struct. Initializes a new instance of the ItemWithIndex<T> class.
Constructors
ItemWithIndex(T, int)
Container for an item and it's index from a list.
Parameters
item
TThe item.
index
intThe index.
Remarks
Initializes a new instance of the ItemWithIndex<T> struct. Initializes a new instance of the ItemWithIndex<T> class.
Properties
Index
Gets the index.
Property Value
Item
Gets the item.
Property Value
- T
Methods
Equals(ItemWithIndex<T>)
Parameters
other
ItemWith <T>Index
Returns
Equals(object?)
Parameters
obj
object
Returns
GetHashCode()
Returns the hash code for this instance.
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns
Operators
operator ==(in ItemWithIndex<T>, in ItemWithIndex<T>)
Returns a value that indicates whether the values of two ItemWithIndex<T> objects are equal.
Parameters
left
ItemWith <T>Index The first value to compare.
right
ItemWith <T>Index The second value to compare.
Returns
- bool
true if the
left
andright
parameters have the same value; otherwise, false.
operator !=(in ItemWithIndex<T>, in ItemWithIndex<T>)
Returns a value that indicates whether two ItemWithIndex<T> objects have different values.
Parameters
left
ItemWith <T>Index The first value to compare.
right
ItemWith <T>Index The second value to compare.
Returns
- bool
true if
left
andright
are not equal; otherwise, false.