What we often need is invoking some method or delegate for each map element. We don't need a separate data structure for this - we may just pass the delegate to the iteration method. The cast of delegate creation usually is much smaller than support for IEnumerable/IEnumerator implementation.
What we often need is invoking some method or delegate for each map element. We don't need a separate data structure for this - we may just pass the delegate to the iteration method. The cast of delegate creation usually is much smaller than support for
IEnumerable/IEnumerator
implementation.