Click or drag to resize
Ranorex

ExtensionMethodsRemoveDuplicatesT, S Method

Removes duplicates from a list using the provided identity mapping function.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static List<T> RemoveDuplicates<T, S>(
	ICollection<T> srcCollection,
	ExtensionMethodsMapDelegate<T, S> identFunc
)

Parameters

srcCollection
Type: System.Collections.GenericICollectionT
The collection to remove the duplicates from.
identFunc
Type: Ranorex.CoreExtensionMethodsMapDelegateT, S
The identity mapping function to apply to the items in the collection.

Type Parameters

T
The type of the items in the collection.
S
The type of the item identity.

Return Value

Type: ListT
A new list containing all elements from the source collection, without duplicates.
See Also