Open sandboxFocus

Method GetIteratorInfo

GetIteratorInfo(IMethod)

Determines whether a method is a yield-based iterator and returns an IteratorInfo value exposing details about the iterator.

Declaration
[CompileTime]
public static IteratorInfo GetIteratorInfo(this IMethod method)
Parameters
Type Name Description
IMethod method
Returns
Type Description
IteratorInfo