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

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

A submodel name. Implicitly converts to/from string. Automatically converts to uppercase.

```csharp theme={null}
[MessagePackObject(true)]
public class SubmodelNameData
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[SubmodelNameData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.SubmodelNameData.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

### SubmodelNameData()

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

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

### SubmodelNameData(string)

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

```csharp theme={null}
public SubmodelNameData(string name)
```

#### Parameters

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

The submodel name.

## Properties

### Name

```csharp theme={null}
public string Name { get; set; }
```

#### Property Value

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

## Methods

### Check()

```csharp theme={null}
public void Check()
```

### Equals(object)

Determines whether the specified object is equal to the current object.

```csharp theme={null}
public override bool Equals(object obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

The object to compare with the current object.

#### Returns

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

[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the specified object  is equal to the current object; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

### GetHashCode()

Serves as the default hash function.

```csharp theme={null}
public override int GetHashCode()
```

#### Returns

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

A hash code for the current object.

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

## Operators

### operator ==(SubmodelNameData, SubmodelNameData)

```csharp theme={null}
public static bool operator ==(SubmodelNameData first, SubmodelNameData second)
```

#### Parameters

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

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

#### Returns

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

### implicit operator SubmodelNameData(string)

```csharp theme={null}
public static implicit operator SubmodelNameData(string submodelName)
```

#### Parameters

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

#### Returns

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

### implicit operator string(SubmodelNameData)

```csharp theme={null}
public static implicit operator string(SubmodelNameData s)
```

#### Parameters

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

#### Returns

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

### operator !=(SubmodelNameData, SubmodelNameData)

```csharp theme={null}
public static bool operator !=(SubmodelNameData first, SubmodelNameData second)
```

#### Parameters

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

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

#### Returns

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