SyntaxExtensions.ContainsYield Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
ContainsYield(LocalFunctionStatementSyntax) | Returns true if the specified local function contains yield statement. Nested local functions are excluded. |
ContainsYield(MethodDeclarationSyntax) | Returns true if the specified method contains yield statement. Nested local functions are excluded. |
ContainsYield(LocalFunctionStatementSyntax)
Returns true if the specified local function contains yield statement. Nested local functions are excluded.
public static bool ContainsYield(this Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax localFunctionStatement)
Parameters
localFunctionStatement LocalFunctionStatementSyntax
Returns
ContainsYield(MethodDeclarationSyntax)
Returns true if the specified method contains yield statement. Nested local functions are excluded.
public static bool ContainsYield(this Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax methodDeclaration)
Parameters
methodDeclaration MethodDeclarationSyntax