> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenTD.NameData Class Reference

A Sinda name, e.g., MAIN.1.

## Public Member Functions

| Type | Name |
| - | - |
| | [NameData](#a41cceae36eba8a11451505f51289a6db) () Initializes a new instance of the [NameData](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_name_data.md) class. |
| | [NameData](#a9bc837ecce204a3b524b46a551a186cf) (string submodel, int id) Initializes a new instance of the [NameData](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_name_data.md) class. |
| override string | [ToString](#a33e95348de7aa78c94767037fb70321d) () |

## Properties

| Type | Name |
| - | - |
| [SubmodelNameData](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_submodel_name_data.md) | [Submodel](#afdde8f5aff3e0727dbf5965535847b2e)`[get, set]` |
| int | [Id](#a311068e52dee7ed10338e7be73be8f61)`[get, set]` |

## Detailed Description

A Sinda name, e.g., MAIN.1.

## Constructor & Destructor Documentation

### NameData() \[1/2]

```csharp theme={null}
OpenTD.NameData.NameData()
```

`inline`

Initializes a new instance of the [NameData](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_name_data.md) class.

### NameData() \[2/2]

```csharp theme={null}
OpenTD.NameData.NameData(
    string submodel,
    int id
)
```

`inline`

Initializes a new instance of the [NameData](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_name_data.md) class.

**Parameters**

| Name | Description |
| - | - |
| submodel | The submodel. |
| id | The ID. |

## Member Function Documentation

### ToString()

```csharp theme={null}
override string OpenTD.NameData.ToString()
```

`inline`

## Property Documentation

### Id

```csharp theme={null}
int OpenTD.NameData.Id
```

`get` `set`

### Submodel

```csharp theme={null}
SubmodelNameData OpenTD.NameData.Submodel
```

`get` `set`

The documentation for this class was generated from the following file:

* C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/**NameData.cs**
