Skip to main content

OpenTD .NET8 reference 2025 R2

OpenTD.Results.Dataset.Topology.SindaName Class Reference

Last update: 16.07.2025

Holds the Submodel/Id pair uniquely identifying model objects within their respective type. More...

Inheritance diagram for OpenTD.Results.Dataset.Topology.SindaName:

Public Member Functions

 SindaName (string submodel, long id)
 Initializes a new instance of the SindaName class for a given submodel and id.
 
override string ToString ()
 Converts to string.
 
bool Equals (SindaName other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static SindaName Parse (string sindaNameKey)
 Parses the specified SindaName key.
 
static bool TryParse (string sindaNameKey, out SindaName sindaName)
 Attempts to parse the specified sinda name key.
 

Properties

string Submodel [get]
 Gets the submodel.
 
long Id [get]
 Gets the id.
 
string Key [get]
 Gets the string key for this SindaName (of the form 'Submodel.Id').
 

Detailed Description

Holds the Submodel/Id pair uniquely identifying model objects within their respective type.

Constructor & Destructor Documentation

◆ SindaName()

OpenTD.Results.Dataset.Topology.SindaName.SindaName ( string submodel,
long id )
inline

Initializes a new instance of the SindaName class for a given submodel and id.

Parameters
submodelThe submodel. Case-insensitive.
idThe identifier.

Member Function Documentation

◆ Equals() [1/2]

override bool OpenTD.Results.Dataset.Topology.SindaName.Equals ( object obj)

◆ Equals() [2/2]

bool OpenTD.Results.Dataset.Topology.SindaName.Equals ( SindaName other)

◆ GetHashCode()

override int OpenTD.Results.Dataset.Topology.SindaName.GetHashCode ( )

◆ Parse()

static SindaName OpenTD.Results.Dataset.Topology.SindaName.Parse ( string sindaNameKey)
inlinestatic

Parses the specified SindaName key.

Parameters
sindaNameKeyThe sinda name key.
Returns
A SindaName.
Exceptions
OpenTDExceptionUnable to split into two parts by '.'.
ArgumentNullExceptionsindaNameKey is null.
ArgumentExceptionId portion is not parseable as an Int64.
OverflowExceptionId portion is less than MinValue or greater than MaxValue for Int64 type.

◆ ToString()

override string OpenTD.Results.Dataset.Topology.SindaName.ToString ( )

Converts to string.

Returns
A System.String that represents this instance in 'Submodel.Id' form.

◆ TryParse()

static bool OpenTD.Results.Dataset.Topology.SindaName.TryParse ( string sindaNameKey,
out SindaName sindaName )
inlinestatic

Attempts to parse the specified sinda name key.

Parameters
sindaNameKeyThe sinda name key.
sindaNameThe parsed SindaName when successful.
Returns
True if the parse was successful and false otherwise.
Exceptions
ArgumentNullExceptionsindaNameKey is null.

Property Documentation

◆ Id

long OpenTD.Results.Dataset.Topology.SindaName.Id
get

Gets the id.

◆ Key

string OpenTD.Results.Dataset.Topology.SindaName.Key
get

Gets the string key for this SindaName (of the form 'Submodel.Id').

◆ Submodel

string OpenTD.Results.Dataset.Topology.SindaName.Submodel
get

Gets the submodel.


The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD.Results/Dataset/Topology/SindaName.cs

Connect with Ansys