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

# Struct Linker<T>

Namespace: [VM.Managed](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed)\
Assembly: VMAppCore.dll

This class is to represent the linker.

```csharp theme={null}
public struct Linker<T>
```

#### Type Parameters

`T`

## Constructors

### Linker(T)

Initializes a new instance of the Linker\`1 class.

```csharp theme={null}
public Linker(T t)
```

#### Parameters

`t` T

### Linker(ITypedLink\<T>)

```csharp theme={null}
public Linker(ITypedLink<T> link)
```

#### Parameters

`link` [ITypedLink](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ITypedLink-1.md)\<T>

## Properties

### IsReference

Gets a value indicating whether linked object is the reference.

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

#### Property Value

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

### Key

Gets or sets the linked object's key.

```csharp theme={null}
public UIntPtr Key { get; }
```

#### Property Value

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

### Object

Gets or sets the linked object.

```csharp theme={null}
public T Object { get; set; }
```

#### Property Value

T

### Prototype

Gets the linked object's prototype.

```csharp theme={null}
public T Prototype { get; }
```

#### Property Value

T

## Methods

### GetSchema()

This method is reserved and should not be used. When implementing the IXmlSerializable interface,
you should return nullNothingnullptra null reference (Nothing in Visual Basic) (Nothing in Visual Basic)
from this method, and instead, if specifying a custom schema is required,
apply the XmlSchemaProviderAttribute to the class.

```csharp theme={null}
public XmlSchema GetSchema()
```

#### Returns

[XmlSchema](https://learn.microsoft.com/dotnet/api/system.xml.schema.xmlschema)

### ReadXml(XmlReader)

Generates an object from its XML representation.

```csharp theme={null}
public void ReadXml(XmlReader reader)
```

#### Parameters

`reader` [XmlReader](https://learn.microsoft.com/dotnet/api/system.xml.xmlreader)

The XmlReader stream from which the object is deserialized.

### WriteXml(XmlWriter)

Converts an object into its XML representation.

```csharp theme={null}
public void WriteXml(XmlWriter writer)
```

#### Parameters

`writer` [XmlWriter](https://learn.microsoft.com/dotnet/api/system.xml.xmlwriter)

The XmlWriter stream to which the object is serialized.

## Operators

### implicit operator Linker\<T>(T)

```csharp theme={null}
public static implicit operator Linker<T>(T t)
```

#### Parameters

`t` T

#### Returns

[Linker](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Linker-1.md)\<T>

### implicit operator T(Linker\<T>)

```csharp theme={null}
public static implicit operator T(Linker<T> linker)
```

#### Parameters

`linker` [Linker](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Linker-1.md)\<T>

#### Returns

T
