| RankedSetTReplace Method (T) |
Replace an item if present.
Namespace:
Kaos.Collections
Assembly:
KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax public bool Replace(
T item
)
Parameters
- item
- Type: T
The replacement item.
Return Value
Type:
Booleantrue if an item is replaced; otherwise
false.
Remarks
This single operation is equivalent to performing a
Remove(T) operation followed by an
Add(T) operation.
See Also