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

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

Represents one data subtype, e.g., TL (lump temperature). If using C#, you can supply
a StandardDataSubtype anywhere a DataSubtype is expected and it will be implicity converted
to a DataSubtype. This also works with a FullStandardDataSubtype.

```csharp theme={null}
public class DataSubtype : IEquatable<DataSubtype>
```

## Inheritance

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

## Implements

[IEquatable\<DataSubtype>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

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

### DataSubtype(StandardDataSubtypes)

```csharp theme={null}
public DataSubtype(StandardDataSubtypes stdDataSubtype)
```

#### Parameters

`stdDataSubtype` [StandardDataSubtypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.StandardDataSubtypes.md)

### DataSubtype(StandardDataSubtypes, FluidConstituents)

```csharp theme={null}
public DataSubtype(StandardDataSubtypes stdDataSubtype, FluidConstituents fluidConstituent)
```

#### Parameters

`stdDataSubtype` [StandardDataSubtypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.StandardDataSubtypes.md)

`fluidConstituent` [FluidConstituents](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.FluidConstituents.md)

### DataSubtype(FullStandardDataSubtype)

```csharp theme={null}
public DataSubtype(FullStandardDataSubtype stdDataSubtypeWithFluid)
```

#### Parameters

`stdDataSubtypeWithFluid` [FullStandardDataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.FullStandardDataSubtype.md)

### DataSubtype(UnitsType, bool, string, string, DataTypes, FluidConstituents)

```csharp theme={null}
public DataSubtype(UnitsData.UnitsType dimension, bool isDimensionalOnlyIfPositive, string description, string baseSindaDesignator, DataTypes dataType, FluidConstituents fluidConstituent = FluidConstituents.NOT_SET)
```

#### Parameters

`dimension` UnitsData.UnitsType

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

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

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

`dataType` [DataTypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataTypes.md)

`fluidConstituent` [FluidConstituents](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.FluidConstituents.md)

### DataSubtype(string, DataTypes, ValueTypes)

```csharp theme={null}
public DataSubtype(string udfaName, DataTypes dataType, DataSubtype.ValueTypes valueType)
```

#### Parameters

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

`dataType` [DataTypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataTypes.md)

`valueType` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md).[ValueTypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.ValueTypes.md)

### DataSubtype(UnitsType, string, DataTypes)

```csharp theme={null}
public DataSubtype(UnitsData.UnitsType dimension, string description, DataTypes dataType = DataTypes.NOT_SET)
```

#### Parameters

`dimension` UnitsData.UnitsType

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

`dataType` [DataTypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataTypes.md)

### DataSubtype(DataSubtype, FluidConstituents)

```csharp theme={null}
public DataSubtype(DataSubtype source, FluidConstituents fluidConstituent)
```

#### Parameters

`source` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

`fluidConstituent` [FluidConstituents](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.FluidConstituents.md)

## Properties

### BaseSindaDesignator

The short string used by Sinda to identify this subtype, e.g., "TL".
Stored and returned as all uppercase.

```csharp theme={null}
public string BaseSindaDesignator { get; }
```

#### Property Value

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

### DataType

The DataTypes enum (node, lump, etc.) associated with this subtype.

```csharp theme={null}
public DataTypes DataType { get; }
```

#### Property Value

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

### DataTypeFamily

The DataTypeFamilies enum (thermal, fluid, other) associated with this subtype.

```csharp theme={null}
public DataTypeFamilies DataTypeFamily { get; }
```

#### Property Value

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

### Description

A short description of this subtype, e.g. "lump temperature".

```csharp theme={null}
public string Description { get; }
```

#### Property Value

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

### Dimension

The physical dimension of this subtype, e.g., temperature.

```csharp theme={null}
public UnitsData.UnitsType Dimension { get; }
```

#### Property Value

UnitsData.UnitsType

### FluidConstituent

For multispecies subtypes, this is the fluid constituent. For non-multispecies
subtypes, this should be set to NOT\_SET.

```csharp theme={null}
public FluidConstituents FluidConstituent { get; }
```

#### Property Value

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

### IsDimensionalOnlyIfPositive

Determines whether this subtype behaves dimensionally only when positive.
(Some Sinda variables are dimensional if positive and just flags if negative.)

```csharp theme={null}
public bool IsDimensionalOnlyIfPositive { get; }
```

#### Property Value

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

### IsUDFA

Determines whether this subtype describes a UDFA.

```csharp theme={null}
public bool IsUDFA { get; }
```

#### Property Value

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

### SindaDesignator

The short string used by Sinda to identify this subtype, combined with
a fluid constituent letter for multispecies subtypes.

```csharp theme={null}
public string SindaDesignator { get; }
```

#### Property Value

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

### StandardDataSubtype

Gets the StandardDataSubtypes enum associated with this subtype.

```csharp theme={null}
public StandardDataSubtypes StandardDataSubtype { get; }
```

#### Property Value

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

### SupportedStandardDataSubtypes

```csharp theme={null}
public static IEnumerable<StandardDataSubtypes> SupportedStandardDataSubtypes { get; }
```

#### Property Value

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[StandardDataSubtypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.StandardDataSubtypes.md)>

### ValueType

The type of value that this subtype represents.

```csharp theme={null}
public DataSubtype.ValueTypes ValueType { get; }
```

#### Property Value

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

## Methods

### Equals(DataSubtype)

Indicates whether the current object is equal to another object of the same type.

```csharp theme={null}
public bool Equals(DataSubtype x)
```

#### Parameters

`x` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

#### Returns

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

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

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

### GetFullStandardDataSubtype()

Gets the FullStandardDataSubtype associated with this subtype.

```csharp theme={null}
public FullStandardDataSubtype GetFullStandardDataSubtype()
```

#### Returns

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

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

### SetFrom(DataSubtype)

```csharp theme={null}
public void SetFrom(DataSubtype x)
```

#### Parameters

`x` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

### 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 ==(DataSubtype, DataSubtype)

```csharp theme={null}
public static bool operator ==(DataSubtype x1, DataSubtype x2)
```

#### Parameters

`x1` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

`x2` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

#### Returns

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

### implicit operator DataSubtype(StandardDataSubtypes)

```csharp theme={null}
public static implicit operator DataSubtype(StandardDataSubtypes x)
```

#### Parameters

`x` [StandardDataSubtypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.StandardDataSubtypes.md)

#### Returns

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

### implicit operator DataSubtype(FullStandardDataSubtype)

```csharp theme={null}
public static implicit operator DataSubtype(FullStandardDataSubtype x)
```

#### Parameters

`x` [FullStandardDataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.FullStandardDataSubtype.md)

#### Returns

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

### operator !=(DataSubtype, DataSubtype)

```csharp theme={null}
public static bool operator !=(DataSubtype x1, DataSubtype x2)
```

#### Parameters

`x1` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

`x2` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

#### Returns

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

## See Also

[StandardDataSubtypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.StandardDataSubtypes.md),
[FullStandardDataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.FullStandardDataSubtype.md)
