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
comparer
Type: IEqualityComparerAn object that is derived from the IEqualityComparer interface, such as the StringComparer class.
Remarks
For case-insensitive comparison, use a comparer that is obtained from the InvariantCultureIgnoreCase property of the StringComparer class.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.