Table of Contents

Struct ProfiledCommandEnumerable

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

A collection of IProfiledCommands.

This is a very light weight data structure, only supporting enumeration.

While it implements IEnumerable, it there are fewer allocations if one uses it's explicit GetEnumerator() method. Using foreach does this automatically.

This type is not threadsafe.

public struct ProfiledCommandEnumerable : IEnumerable<IProfiledCommand>, IEnumerable
Implements
Inherited Members

Methods

GetEnumerator()

Returns an implementor of IEnumerator that, provided it isn't accessed though an interface, avoids allocations.

foreach will automatically use this method.

public ProfiledCommandEnumerable.Enumerator GetEnumerator()

Returns

ProfiledCommandEnumerable.Enumerator