Class SindaName
Last update: 09.03.2026Namespace: OpenTD.Results.Dataset.Topology
Assembly: OpenTD.Results.dll
Holds the Submodel/Id pair uniquely identifying model objects within their respective type.
public class SindaName : IEquatable<SindaName>
Inheritance
Implements
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
SindaName(string, long)
Initializes a new instance of the
public SindaName(string submodel, long id)
Parameters
submodel string
The submodel. Case-insensitive.
id long
The identifier.
Properties
Id
public long Id { get; }
Property Value
Key
public string Key { get; }
Property Value
Submodel
public string Submodel { get; }
Property Value
Methods
Equals(SindaName)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SindaName other)
Parameters
other SindaName
An object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj object
The object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
A hash code for the current object.
Parse(string)
Parses the specified SindaName key.
public static SindaName Parse(string sindaNameKey)
Parameters
sindaNameKey string
The sinda name key.
Returns
A SindaName.
Exceptions
OpenTDException
Unable to split into two parts by '.'.
sindaNameKey is null.
Id portion is not parseable as an Int64.
Id portion is less than MinValue or greater than MaxValue for Int64 type.
ToString()
Converts to string.
public override string ToString()
Returns
A
TryParse(string, out SindaName)
Attempts to parse the specified sinda name key.
public static bool TryParse(string sindaNameKey, out SindaName sindaName)
Parameters
sindaNameKey string
The sinda name key.
sindaName SindaName
The parsed SindaName when successful.
Returns
True if the parse was successful and false otherwise.
Exceptions
sindaNameKey is null.