# OpcDataEnumerator&lt;T&gt; Class

<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">OpcDataEnumerator&lt;T&gt; Members</a></dd>
</dl>

Provides an enumerator for simple iteration over a generic collection.

## Syntax

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

```csharp
public class OpcDataEnumerator<T>
```

</div>

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

```vbnet
Public Class OpcDataEnumerator(Of T)
```

</div>

## Type parameters

| Name | Description |
|---|---|
| `T` |  |

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcDataEnumerator&lt;T&gt;**

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerator">IEnumerator</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1">IEnumerator</a>&lt;T&gt;</li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcDataEnumerator](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdataenumerator-1/members#opcdataenumerator) | Initializes a new instance of the OpcDataEnumerator&lt;T&gt; class using the `list` as the orginator of the items to iterate. |

## Properties

| Name | Description |
|---|---|
| [Current](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdataenumerator-1/members#current) | Gets the element in the origin at the current position of the enumerator. |

## Methods

| Name | Description |
|---|---|
| [Dispose](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdataenumerator-1/members#dispose)<span class="api-meta">2 overloads</span> | Releases all resources used by the OpcDataEnumerator&lt;T&gt;. |
| [MoveNext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdataenumerator-1/members#movenext) | Advances the enumerator to the next element of the origin. |
| [Reset](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdataenumerator-1/members#reset) | Sets the enumerator to its initial position, which is before the first element in the origin. |

## Applies to

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