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

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

Base class for TD logic objects.

```csharp theme={null}
[MessagePackObject(true)]
public class LogicObject : OpenTDObject, IUpdatable
```

## Inheritance

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

## Implements

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

## Inherited Members

[OpenTDObject.SetFrom(OpenTDObject)](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#setfrom-opentdobject),
[OpenTDObject.Update()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#update),
[OpenTDObject.UpdateFromTD()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#updatefromtd),
[OpenTDObject.UpdateIn(ThermalDesktop)](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#updatein-thermaldesktop),
[OpenTDObject.CreateIn(ThermalDesktop)](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#createin-thermaldesktop),
[OpenTDObject.TdProxy](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#tdproxy),
[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

### LogicObject()

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

## Properties

### Comment

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

#### Property Value

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

### EnabledExp

```csharp theme={null}
public ExpressionData EnabledExp { get; set; }
```

#### Property Value

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

### GroupName

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

#### Property Value

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

### Handle

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

#### Property Value

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

### Submodel

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

#### Property Value

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

### Type

```csharp theme={null}
[IgnoreMember]
public LogicObject.LogicType Type { get; }
```

#### Property Value

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

## Methods

### CreateIn(ThermalDesktop)

Creates the TD entity in the specified TD instance.

```csharp theme={null}
public override void CreateIn(ThermalDesktop td)
```

#### Parameters

`td` [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.ThermalDesktop.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.

### Update()

Updates the TD entity with the latest client data.

```csharp theme={null}
public override void Update()
```

### UpdateFromTD()

Updates the client-side instance with the latest data from the TD entity.

```csharp theme={null}
public override void UpdateFromTD()
```
