Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Removes all elements from the target collection that are not contained in the source collection.

Namespace: Tangosol.Util
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
public static bool RetainAll(
	ICollection target,
	ICollection source
)

Parameters

target
Type: System.Collections..::..ICollection
Collection from which the elements should be removed.
source
Type: System.Collections..::..ICollection
Collection of elements not to remove.

Return Value

true if at least one element was removed, false otherwise.

Remarks

When collection is IDictionary objects in source collection should be DictionaryEntrys.

See Also