MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeMethod­ExtensionsGet­Iterator­Info
Open sandboxFocus

MethodExtensions.GetIteratorInfo Method

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