Share via


EqtBaseCollection<T> Constructor (IEqualityComparer)

Initializes a new sortable instance of the EqtBaseCollection<T> class by using the provided comparer.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
Protected Sub New ( _
    comparer As IEqualityComparer _
)
protected EqtBaseCollection(
    IEqualityComparer comparer
)
protected:
EqtBaseCollection(
    IEqualityComparer^ comparer
)
new : 
        comparer:IEqualityComparer -> EqtBaseCollection
protected function EqtBaseCollection(
    comparer : IEqualityComparer
)

Parameters

Remarks

For case-insensitive comparison, use a comparer that is obtained from the InvariantCultureIgnoreCase property of the StringComparer class.

.NET Framework Security

See Also

Reference

EqtBaseCollection<T> Class

EqtBaseCollection<T> Overload

Microsoft.VisualStudio.TestTools.Common Namespace

IEqualityComparer

InvariantCultureIgnoreCase