VRage.Utils
MyStringId
Assembly: VRage.Library.dll
public struct MyStringId: IXmlSerializable
Generates unique IDs for strings. When used as key for hash tables (Dictionary or HashSet) always pass in MyStringId.Comparer, otherwise lookups will allocate memory! Never serialize to network or disk! IDs are created sequentially as they get requested so two IDs might be different between sessions or clients and server. You can safely use ToString() as it will not allocate.
Fields
| Member | Description |
|---|---|
| static Comparer | |
| static NullOrEmpty | |
| m_id |
Properties
| Member | Description |
|---|---|
| Id | |
| String |
Methods
Implements:
- IXmlSerializable prohibited