# GetEnumerator Method

## Overloads

| [GetEnumerator()](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.CurrentSelection.GetEnumerator.htm#Qlik_Sense_Client_CurrentSelection_GetEnumerator) |  | Gets an enumerator that iterates through the collection. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.CurrentSelection.GetEnumerator.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.CurrentSelection.GetEnumerator.htm)

## GetEnumerator()

Gets an enumerator that iterates through the collection.

### Declaration

```

          public IEnumerator<NxCurrentSelectionItem> GetEnumerator()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Collections.Generic.IEnumerator&lt;[NxCurrentSelectionItem](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxCurrentSelectionItem.htm)&gt; | A System.Collections.Generic.IEnumerator&lt;T&gt; that can be used to iterate through the collection. |

### Implements

System.Collections.Generic.IEnumerable&lt;T&gt;.GetEnumerator()