Click or drag to resize

IHCollectionTRetainAllTE Method

Retains only the elements in this collection that are contained in the specified collection (optional operation).

Namespace:  Hazelcast.Core
Assembly:  Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.2
Syntax
bool RetainAll<TE>(
	ICollection<TE> c
)

Parameters

c
Type: System.Collections.GenericICollectionTE
The c.

Type Parameters

TE
type of elements

Return Value

Type: Boolean
true if this collection changed, false otherwise.
Remarks
Retains only the elements in this collection that are contained in the specified collection (optional operation). In other words, removes from this collection all of its elements that are not contained in the specified collection
See Also