Assembly: OpenTD.Results.dll Holds the Submodel/Id pair uniquely identifying model objects within their respective type.
Inheritance
object ← SindaNameImplements
IEquatable<SindaName>Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()Constructors
SindaName(string, long)
Initializes a new instance of the SindaName class for a given submodel and id.Parameters
submodel string
The submodel. Case-insensitive.
id long
The identifier.
Properties
Id
Property Value
longKey
Property Value
stringSubmodel
Property Value
stringMethods
Equals(SindaName)
Indicates whether the current object is equal to another object of the same type.Parameters
other SindaName
An object to compare with this object.
Returns
bool true if the current object is equal to theother parameter; otherwise, false.
Equals(object)
Determines whether the specified object is equal to the current object.Parameters
obj object
The object to compare with the current object.
Returns
bool true if the specified object is equal to the current object; otherwise, false.GetHashCode()
Serves as the default hash function.Returns
int A hash code for the current object.Parse(string)
Parses the specified SindaName key.Parameters
sindaNameKey string
The sinda name key.
Returns
SindaName A SindaName.Exceptions
OpenTDException Unable to split into two parts by ’.’. ArgumentNullException sindaNameKey is null. ArgumentException Id portion is not parseable as an Int64. OverflowException Id portion is less than MinValue or greater than MaxValue for Int64 type.ToString()
Converts to string.Returns
string A String that represents this instance in ‘Submodel.Id’ form.TryParse(string, out SindaName)
Attempts to parse the specified sinda name key.Parameters
sindaNameKey string
The sinda name key.
sindaName SindaName
The parsed SindaName when successful.