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

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

A class to generalize "items" that are associated with data,
e.g., entities (nodes, lumps, etc.), registers, record numbers, etc.

```csharp theme={null}
public class ItemIdentifier
```

## Inheritance

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

### ItemIdentifier(Types, string, long, long, string)

```csharp theme={null}
public ItemIdentifier(ItemIdentifier.Types type, string submodel, long id, long recordNum, string registerName)
```

#### Parameters

`type` [ItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.ItemIdentifier.md).[Types](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.ItemIdentifier.Types.md)

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

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

`recordNum` [long](https://learn.microsoft.com/dotnet/api/system.int64)

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

### ItemIdentifier(string)

```csharp theme={null}
public ItemIdentifier(string sindaName)
```

#### Parameters

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

### ItemIdentifier(string, long)

```csharp theme={null}
public ItemIdentifier(string submodel, long id)
```

#### Parameters

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

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

## Properties

### AutoCommenter

```csharp theme={null}
protected AutoCommenter AutoCommenter { get; set; }
```

#### Property Value

AutoCommenter

### Comment

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

#### Property Value

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

### Id

```csharp theme={null}
public long Id { get; }
```

#### Property Value

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

### InternalSuggestedComment

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

#### Property Value

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

### RecordNum

```csharp theme={null}
public long RecordNum { get; }
```

#### Property Value

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

### RegisterName

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

#### Property Value

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

### Submodel

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

#### Property Value

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

### Type

```csharp theme={null}
public ItemIdentifier.Types Type { get; }
```

#### Property Value

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

## Methods

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

### GetSelfSuggestedComment()

```csharp theme={null}
protected virtual string GetSelfSuggestedComment()
```

#### Returns

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

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

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

#### Parameters

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

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

#### Returns

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

### operator !=(ItemIdentifier, ItemIdentifier)

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

#### Parameters

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

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

#### Returns

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