RouteValueEqualityComparer Class

Definition

An IEqualityComparer<T> implementation that compares objects as-if they were route value strings.

C#
public class RouteValueEqualityComparer : System.Collections.Generic.IEqualityComparer<object>
Inheritance
RouteValueEqualityComparer
Implements

Remarks

Values that are are not strings are converted to strings using Convert.ToString(x, CultureInfo.InvariantCulture). null values are converted to the empty string.

strings are compared using OrdinalIgnoreCase.

Constructors

Fields

Default

A default instance of the RouteValueEqualityComparer.

Methods

Equals(Object, Object)

Determines whether the specified objects are equal.

GetHashCode(Object)

Returns a hash code for the specified object.

Applies to

Produk Versi
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0