A unique integer-based representation for common strings used in various style algorithms for faster comparison and reduced memory footprint.
Ids may very between consecutive runs and may be regenerated on domain reload.
| Property | Description |
|---|---|
| Empty | The UniqueStyleString representation of an empty string. |
| Null | The UniqueStyleString representation of a null string. |
| Property | Description |
|---|---|
| id | An integer representing the underlying string uniquely. |
| IsEmpty | Returns whether this UniqueStyleString represents an empty string. |
| IsNull | Returns whether this UniqueStyleString represents a null string. |
| Constructor | Description |
|---|---|
| UniqueStyleString | Creates a new UniqueStyleString from a string. |
| Method | Description |
|---|---|
| Equals | Computes whether or not this UniqueStyleString is identical to the other given UniqueStyleString. |
| GetHashCode | Computes a valid hash code for this UniqueStyleString. |
| IsNullOrEmpty | Returns true if this UniqueStyleString represents either a null or empty string. |
| IsSame | Compares this UniqueStyleString to a given string for equality. |
| ToString | Returns a string value with the same content as the string that was used to obtain this UniqueStyleString. |
| Method | Description |
|---|---|
| TryGet | Attempts to retrieve an existing UniqueStyleString from a string value. |
| Operator | Description |
|---|---|
| operator != | Computes whether or not this UniqueStyleString is different from the other given UniqueStyleString. |
| operator == | Computes whether or not this UniqueStyleString is identical to the other given UniqueStyleString. |