MethodDeclarationSyntax Class Extensions
Extension Method | Summary |
---|---|
BodyOrExpressionBody(MethodDeclarationSyntax) | Returns method body or an expression body if the body is null. |
ContainsYield(MethodDeclarationSyntax) | Returns true if the specified method contains yield statement. Nested local functions are excluded. |
ReturnsVoid(MethodDeclarationSyntax) | Returns true if the specified method return type is Void. |