Class StringSegmentComparer
A comparer designed to compare StringSegment instances in a case sensitive manner. Use DEFAULT for a default instance
Inheritance
System.Object
StringSegmentComparer
Namespace: VRage.Game.ModAPI.Ingame.Utilities
Assembly: VRage.Game.dll
Syntax
public class StringSegmentComparer : Object, IEqualityComparer<StringSegment>
Constructors
StringSegmentComparer()
Declaration
public StringSegmentComparer()
Fields
DEFAULT
A default instance of StringSegmentComparer
Declaration
public static readonly StringSegmentComparer DEFAULT
Field Value
Type | Description |
---|---|
StringSegmentComparer |
Methods
Equals(StringSegment, StringSegment)
Determines whether the specified objects are equal.
Declaration
public bool Equals(StringSegment x, StringSegment y)
Parameters
Type | Name | Description |
---|---|---|
StringSegment | x | The first object of type T to compare. |
StringSegment | y | The second object of type T to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified objects are equal; otherwise, false. |
GetHashCode(StringSegment)
Returns a hash code for the specified object.
Declaration
public int GetHashCode(StringSegment obj)
Parameters
Type | Name | Description |
---|---|---|
StringSegment | obj | The System.Object for which a hash code is to be returned. |
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the specified object. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The type of |