> ## 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.

# Class NameData

Namespace: [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD)\
Assembly: OpenTD.dll

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

```csharp theme={null}
[DataContract]
public class NameData
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[NameData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.NameData.md)

## Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[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.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[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)

## Constructors

### NameData()

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

```csharp theme={null}
public NameData()
```

### NameData(string, int)

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

```csharp theme={null}
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 theme={null}
[DataMember]
public int Id { get; set; }
```

#### Property Value

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

### Submodel

```csharp theme={null}
[DataMember]
public SubmodelNameData Submodel { get; set; }
```

#### Property Value

[SubmodelNameData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.SubmodelNameData.md)

## Methods

### ToString()

Returns a string that represents the current object.

```csharp theme={null}
public override string ToString()
```

#### Returns

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

A string that represents the current object.
