Dela via


RouteValueEqualityComparer Class

Definition

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

public ref class RouteValueEqualityComparer : System::Collections::Generic::IEqualityComparer<System::Object ^>
public class RouteValueEqualityComparer : System.Collections.Generic.IEqualityComparer<object>
type RouteValueEqualityComparer = class
    interface IEqualityComparer<obj>
Public Class RouteValueEqualityComparer
Implements IEqualityComparer(Of 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

RouteValueEqualityComparer()

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