> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.ksatomicdictionary-2/ks.reactor.ksatomicdictionary-2.foreachcallback.md).

# Delegate ksAtomicDictionary\<Key, Value>.ForEachCallback

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

For each callback.

```csharp
public delegate bool ksAtomicDictionary<Key, Value>.ForEachCallback(KeyValuePair<Key, Value> pair)
```

#### Parameters

`pair` [KeyValuePair](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2)\<Key, Value>

Pair being iterated

#### Returns

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

True to remove the pair from the dictionary.
