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

Member Description
static Get(string)
static GetOrCompute(string)
static IsKnown(MyStringId)
static TryGet(string, out MyStringId)
static TryGet(string)
Equals(object)
Equals(MyStringId)
GetHashCode()
GetSchema()
ReadXml(XmlReader)
ToString()
WriteXml(XmlWriter)

Implements: