IsIteratorMethod
Gets a value indicating whether the method is an iterator, i.e., whether it has a yield return or yield break statement.
Declaration
public bool? IsIteratorMethod { get; }Property Value
| Type | Description |
|---|---|
| bool? |
|
Remarks
This property only indicates whether the method uses yield-based iteration. To determine the kind of enumerable returned by the method regardless of implementation, use EnumerableKind.