Set<T>.Create Set Comparer Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public: static System::Collections::Generic::IEqualityComparer<System::Collections::Generic::HashSet<T> ^> ^ CreateSetComparer();
public static System.Collections.Generic.IEqualityComparer<System.Collections.Generic.HashSet<T>> CreateSetComparer ();
static member CreateSetComparer : unit -> System.Collections.Generic.IEqualityComparer<System.Collections.Generic.HashSet<'T>>
Public Shared Function CreateSetComparer () As IEqualityComparer(Of HashSet(Of T))
The IEqualityComparer object checks for equality at only one level; however, you can chain together comparers at additional levels to perform deeper equality testing.
Calling this method is an O(1) operation.