# OpcDataTypeMapper Class

> Reference: Provides an abstract implementation of the IOpcDataTypeMapper interface.

<span class="api-meta">abstract · since v2.27</span>

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcDataTypeMapper Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides an abstract implementation of the [IOpcDataTypeMapper](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcdatatypemapper/) interface.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public abstract class OpcDataTypeMapper
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public MustInherit Class OpcDataTypeMapper
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcDataTypeMapper**

## Implements

<ul class="api-implements">
<li><a href="../opc.uafx.iopcdatatypemapper/">IOpcDataTypeMapper</a></li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcDataTypeMapper](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#opcdatatypemapper)<span class="api-meta">protected</span> | Initializes a new instance of the OpcDataTypeMapper class. |

## Properties

| Name | Description |
|---|---|
| [SourceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#sourcetype)<span class="api-meta">abstract</span> | Gets the [Type](https://learn.microsoft.com/dotnet/api/system.type) from an [object](https://learn.microsoft.com/dotnet/api/system.object) can be mapped to the [TargetType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#targettype) using this OpcDataTypeMapper. |
| [TargetType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#targettype)<span class="api-meta">abstract</span> | Gets the [Type](https://learn.microsoft.com/dotnet/api/system.type) to that an [object](https://learn.microsoft.com/dotnet/api/system.object) is mapped using this OpcDataTypeMapper. |

## Methods

| Name | Description |
|---|---|
| [Convert](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#convert) | Converts the `source`[object](https://learn.microsoft.com/dotnet/api/system.object) to a specific type. |
| [ConvertBack](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#convertback) | Converts the `target`[object](https://learn.microsoft.com/dotnet/api/system.object) to the type from which the value has been created. |
| [ConvertBackCore](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#convertbackcore)<span class="api-meta">protected · abstract</span> | When implemented in a derived class; converts the `target`[object](https://learn.microsoft.com/dotnet/api/system.object) to the type from which the value has been created. |
| [ConvertCore](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#convertcore)<span class="api-meta">protected · abstract</span> | When implemented in a derived class; converts the `source`[object](https://learn.microsoft.com/dotnet/api/system.object) to a specific type. |
| [Convertible](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#convertible)<span class="api-meta">static</span> | Provides an OpcDataTypeMapper which utilizes the [IConvertible](https://learn.microsoft.com/dotnet/api/system.iconvertible) interface implemented by the `TSource` and `TTarget` types. |
| [Delegate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypemapper/members#delegate)<span class="api-meta">static</span> | Provides an OpcDataTypeMapper which uses the `convert` and `convertBack` delegates. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.27–v2.59 |
