Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Code / Iterator­Info / Is­Iterator­Method

Property IsIteratorMethod


Gets a value indicating whether the method is an iterator (i.e., has a yield return or yield break statement). This property evaluates to false for methods that return an enumerable type but do not use yield, and null for methods that are not defined in the current project.

public Nullable<bool> IsIteratorMethod { get; }
Property Value
Type Description