Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / Method­Extensions / Get­Iterator­Info

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