Open sandboxFocus

Method OpenIteratorContext

OpenIteratorContext(IEnumerator, ref LogMemberInfo)

Gets an IteratorLoggingContext for a given iterator method.

Declaration
public IteratorLoggingContext OpenIteratorContext(IEnumerator enumerator, ref LogMemberInfo logMemberInfo)
Parameters
Type Name Description
IEnumerator enumerator

The IEnumerator associated with the method to be logged.

LogMemberInfo logMemberInfo

A reference to a LogMemberInfo describing the method being logged.

Returns
Type Description
IteratorLoggingContext

An IteratorLoggingContext for logMemberInfo.