Skip to main content

LocalFunctionStatementSyntax Class Extensions

Extension MethodSummary
BodyOrExpressionBody(LocalFunctionStatementSyntax)Returns local function body or an expression body if the body is null.
ContainsYield(LocalFunctionStatementSyntax)Returns true if the specified local function contains yield statement. Nested local functions are excluded.
ReturnsVoid(LocalFunctionStatementSyntax)Returns true if the specified local function' return type is Void.