Provides information about the iterator characteristics of a method, returned by the GetIteratorInfo(IMethod) extension method of IMethod.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public readonly struct IteratorInfoRemarks
Use this struct to inspect iterator method properties at compile time, for example in BuildAspect.
Note that IsIteratorMethod indicates whether the method uses yield return or yield break,
while EnumerableKind indicates the return type regardless of the implementation.
Properties
| Name | Description |
|---|---|
| EnumerableKind | Gets the kind of enumerable or enumerator returned by the method, regardless of whether the method is a yield-based iterator (see IsIteratorMethod). |
| IsIteratorMethod | Gets a value indicating whether the method is an iterator, i.e., whether it has a |
| ItemType | Gets the type of items being enumerated. |