    

 ## On this page

  

 

 # Class NameData

 Last update: 09.03.2026 

Namespace: [OpenTD](OpenTD.md)  
Assembly: OpenTD.dll

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

```csharp
[MessagePackObject(true)]
public class NameData

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [NameData](OpenTD.NameData.md)

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), [object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### NameData()

Initializes a new instance of the  class.

```csharp
public NameData()

```

### NameData(string, int)

Initializes a new instance of the  class.

```csharp
public NameData(string submodel, int id)

```

#### Parameters

`submodel` [string](https://learn.microsoft.com/dotnet/api/system.string)

The submodel.

`id` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The ID.

## Properties

### Id

```csharp
public int Id { get; set; }

```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### Submodel

```csharp
public SubmodelNameData Submodel { get; set; }

```

#### Property Value

[SubmodelNameData](OpenTD.SubmodelNameData.md)

## Methods

### ToString()

Returns a string that represents the current object.

```csharp
public override string ToString()

```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A string that represents the current object.