Wraps around a string to allow for faster case-insensitive
string comparisons while preserving original casing.
public struct InternedString : IEquatable<InternedString>, IComparable<InternedString>
Constructors
Declaration
public InternedString(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Properties
Declaration
public int length { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
public int CompareTo(InternedString other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Declaration
public bool Equals(InternedString other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
Returns
Type |
Description |
System.String |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Declaration
public static bool operator ==(string a, InternedString b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator ==(InternedString a, string b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator ==(InternedString a, InternedString b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator>(InternedString left, InternedString right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static implicit operator string (InternedString str)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public static bool operator !=(string a, InternedString b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(InternedString a, string b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(InternedString a, InternedString b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator <(InternedString left, InternedString right)
Parameters
Returns
Type |
Description |
System.Boolean |
|