Table of Contents

Class StringSegmentComparer

Namespace
Acuit.Pinpoint.Primitives
Assembly
Acuit.Pinpoint.Configuration.dll
public class StringSegmentComparer : IEqualityComparer<StringSegment>
Inheritance
StringSegmentComparer
Implements
Inherited Members

Properties

Ordinal

public static StringSegmentComparer Ordinal { get; }

Property Value

StringSegmentComparer

OrdinalIgnoreCase

public static StringSegmentComparer OrdinalIgnoreCase { get; }

Property Value

StringSegmentComparer

Methods

Equals(StringSegment, StringSegment)

Determines whether the specified objects are equal.

public bool Equals(StringSegment x, StringSegment y)

Parameters

x StringSegment

The first object of type T to compare.

y StringSegment

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

GetHashCode(StringSegment)

Returns a hash code for the specified object.

public int GetHashCode(StringSegment obj)

Parameters

obj StringSegment

The object for which a hash code is to be returned.

Returns

int

A hash code for the specified object.

Exceptions

ArgumentNullException

The type of obj is a reference type and obj is null.