Hashtable.hcp Property

Definition

Caution

Please use EqualityComparer property.

Caution

Hashtable.hcp has been deprecated. Use the EqualityComparer property instead.

Gets or sets the object that can dispense hash codes.

C#
[System.Obsolete("Please use EqualityComparer property.")]
protected System.Collections.IHashCodeProvider? hcp { get; set; }
C#
[System.Obsolete("Hashtable.hcp has been deprecated. Use the EqualityComparer property instead.")]
protected System.Collections.IHashCodeProvider? hcp { get; set; }
C#
[System.Obsolete("Please use EqualityComparer property.")]
protected System.Collections.IHashCodeProvider hcp { get; set; }
C#
protected System.Collections.IHashCodeProvider hcp { get; set; }

Property Value

The object that can dispense hash codes.

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

Product Versions (Obsolete)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard (2.0, 2.1)

See also