    

 ## On this page

  

 

 # Struct Linker&lt;T\\&gt;

 Last update: 16.07.2025 

Namespace: [VM.Managed](VM.Managed.md)  
Assembly: VMAppCore.dll

This class is to represent the linker.

```csharp
public struct Linker<T>

```

#### Type Parameters

`T`

## Constructors

### Linker(T)

Initializes a new instance of the  class.

```csharp
public Linker(T t)

```

#### Parameters

`t` T

### Linker(ITypedLink&lt;T&gt;)

```csharp
public Linker(ITypedLink<T> link)

```

#### Parameters

`link` [ITypedLink](VM.Managed.ITypedLink-1.md)&lt;T&gt;

## Properties

### IsReference

Gets a value indicating whether linked object is the reference.

```csharp
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
public UIntPtr Key { get; }

```

#### Property Value

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

### Object

Gets or sets the linked object.

```csharp
public T Object { get; set; }

```

#### Property Value

T

### Prototype

Gets the linked object's prototype.

```csharp
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
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
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
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&lt;T&gt;(T)

```csharp
public static implicit operator Linker<T>(T t)

```

#### Parameters

`t` T

#### Returns

[Linker](VM.Managed.Linker-1.md)&lt;T&gt;

### implicit operator T(Linker&lt;T&gt;)

```csharp
public static implicit operator T(Linker<T> linker)

```

#### Parameters

`linker` [Linker](VM.Managed.Linker-1.md)&lt;T&gt;

#### Returns

T