Skip to main content

OpenTD reference 2026 R1

Class SindaName

Last update: 09.03.2026

Namespace: 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

object ← SindaName

Implements

IEquatable<SindaName>

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 class for a given submodel and id.

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

long

Key

public string Key { get; }

Property Value

string

Submodel

public string Submodel { get; }

Property Value

string

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

bool

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

bool

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

int

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

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.

public override string ToString()

Returns

string

A that represents this instance in 'Submodel.Id' form.

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

bool

True if the parse was successful and false otherwise.

Exceptions

ArgumentNullException

sindaNameKey is null.

Connect with Ansys