Επεξεργασία

Κοινή χρήση μέσω


Hashtable.comparer Property

Definition

Caution

Please use KeyComparer properties.

Caution

Hashtable.comparer has been deprecated. Use the KeyComparer properties instead.

Gets or sets the IComparer to use for the Hashtable.

protected:
 property System::Collections::IComparer ^ comparer { System::Collections::IComparer ^ get(); void set(System::Collections::IComparer ^ value); };
[System.Obsolete("Please use KeyComparer properties.")]
protected System.Collections.IComparer? comparer { get; set; }
[System.Obsolete("Hashtable.comparer has been deprecated. Use the KeyComparer properties instead.")]
protected System.Collections.IComparer? comparer { get; set; }
[System.Obsolete("Please use KeyComparer properties.")]
protected System.Collections.IComparer comparer { get; set; }
protected System.Collections.IComparer comparer { get; set; }
[<System.Obsolete("Please use KeyComparer properties.")>]
member this.comparer : System.Collections.IComparer with get, set
[<System.Obsolete("Hashtable.comparer has been deprecated. Use the KeyComparer properties instead.")>]
member this.comparer : System.Collections.IComparer with get, set
member this.comparer : System.Collections.IComparer with get, set
Protected Property comparer As IComparer

Property Value

The IComparer to use for the Hashtable.

Attributes

Exceptions

The property is set to a value, but the hash table was created using an IEqualityComparer.

Remarks

Retrieving the value of this property is an O(1) operation.

Applies to

See also