Click or drag to resize

RankedSetTReplace Method (T)

Replace an item if present.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public bool Replace(
	T item
)

Parameters

item
Type: T
The replacement item.

Return Value

Type: Boolean
true 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