 | 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
Syntaxpublic static List<T> RemoveDuplicates<T, S>(
ICollection<T> srcCollection,
ExtensionMethodsMapDelegate<T, S> identFunc
)
Public Shared Function RemoveDuplicates(Of T, S) (
srcCollection As ICollection(Of T),
identFunc As ExtensionMethodsMapDelegate(Of T, S)
) As List(Of T)
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:
ListTA new list containing all elements from the source collection, without duplicates.
See Also