Struct ItemWithValue<TObject, TValue>
- Namespace
- Dynamic
Data .Kernel
- Assembly
- DynamicData.dll
Container for an item and it's Value from a list.
Type Parameters
TObject
The type of the object.
TValue
The type of the value.
- Implements
-
IEquatable<Item
With <TObject, TValue>>Value
- Extension Methods
Remarks
Initializes a new instance of the ItemWithValue<TObject, TValue> struct. Initializes a new instance of the ItemWithIndex<T> class.
Constructors
ItemWithValue(TObject, TValue)
Container for an item and it's Value from a list.
Parameters
item
TObjectThe item.
value
TValueThe Value.
Remarks
Initializes a new instance of the ItemWithValue<TObject, TValue> struct. Initializes a new instance of the ItemWithIndex<T> class.
Properties
Item
Gets the item.
Property Value
- TObject
Value
Gets the Value.
Property Value
- TValue
Methods
Equals(ItemWithValue<TObject, TValue>)
Parameters
other
ItemWith <TObject, TValue>Value
Returns
Equals(object?)
Parameters
obj
object
Returns
GetHashCode()
Returns
ToString()
Returns
Operators
operator ==(in ItemWithValue<TObject, TValue>, in ItemWithValue<TObject, TValue>)
Implements the operator ==.
public static bool operator ==(in ItemWithValue<TObject, TValue> left, in ItemWithValue<TObject, TValue> right)
Parameters
left
ItemWith <TObject, TValue>Value The left.
right
ItemWith <TObject, TValue>Value The right.
Returns
- bool
The result of the operator.
operator !=(in ItemWithValue<TObject, TValue>, in ItemWithValue<TObject, TValue>)
Implements the operator !=.
public static bool operator !=(in ItemWithValue<TObject, TValue> left, in ItemWithValue<TObject, TValue> right)
Parameters
left
ItemWith <TObject, TValue>Value The left.
right
ItemWith <TObject, TValue>Value The right.
Returns
- bool
The result of the operator.