A unique integer-based representation for common strings used in various style algorithms for faster comparison and reduced memory footprint.
Attempting to represent a null string with this structure has an undefined behavior and may throw exceptions.
Ids may very between consecutive runs and may be regenerated on domain reload.
| Property | Description |
|---|---|
| id | An integer representing the underlying string uniquely. |
| value | A string value that's equal to the string that was used to obtain this UniqueStyleString. |
| 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. |
| 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. |
| string | Converts a UniqueStyleString to string. |
| UniqueStyleString | Converts a string to UniqueStyleString. |