IHCollectionTRetainAllTE Method Hazelcast .Net Client Class Library
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.6.4.0
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

Reference