Click or drag to resize
SetTAdd Method
Adds a new item to the set. If the set already contains an item equal to item, that item is replaced with item.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public bool Add(
	T item
)

Parameters

item
Type: T
The item to add to the set.

Return Value

Type: Boolean
True if the set already contained an item equal to item (which was replaced), false otherwise.
Remarks

Equality between items is determined by the comparison instance or delegate used to create the set.

Adding an item takes approximately constant time, regardless of the number of items in the set.

See Also