StringSegmentComparer Class

Definition

public ref class StringSegmentComparer : System::Collections::Generic::IEqualityComparer<Microsoft::Extensions::Primitives::StringSegment>
public ref class StringSegmentComparer : System::Collections::Generic::IComparer<Microsoft::Extensions::Primitives::StringSegment>, System::Collections::Generic::IEqualityComparer<Microsoft::Extensions::Primitives::StringSegment>
public class StringSegmentComparer : System.Collections.Generic.IEqualityComparer<Microsoft.Extensions.Primitives.StringSegment>
public class StringSegmentComparer : System.Collections.Generic.IComparer<Microsoft.Extensions.Primitives.StringSegment>, System.Collections.Generic.IEqualityComparer<Microsoft.Extensions.Primitives.StringSegment>
type StringSegmentComparer = class
    interface IEqualityComparer<StringSegment>
type StringSegmentComparer = class
    interface IComparer<StringSegment>
    interface IEqualityComparer<StringSegment>
Public Class StringSegmentComparer
Implements IEqualityComparer(Of StringSegment)
Public Class StringSegmentComparer
Implements IComparer(Of StringSegment), IEqualityComparer(Of StringSegment)
Inheritance
StringSegmentComparer
Implements

Properties

Ordinal
OrdinalIgnoreCase

Methods

Compare(StringSegment, StringSegment)

比较两个对象并返回一个值,该值指示一个对象小于、等于还是大于另一个对象。Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Equals(StringSegment, StringSegment)

确定指定的对象是否相等。Determines whether the specified objects are equal.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetHashCode(StringSegment)

返回指定对象的哈希代码。Returns a hash code for the specified object.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

Applies to