Skip to main content

SyntaxExtensions.ReturnsVoid Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads​

MethodSummary
ReturnsVoid(DelegateDeclarationSyntax)Returns true the specified delegate return type is Void.
ReturnsVoid(LocalFunctionStatementSyntax)Returns true if the specified local function' return type is Void.
ReturnsVoid(MethodDeclarationSyntax)Returns true if the specified method return type is Void.

ReturnsVoid(DelegateDeclarationSyntax)​

Returns true the specified delegate return type is Void.

public static bool ReturnsVoid(this Microsoft.CodeAnalysis.CSharp.Syntax.DelegateDeclarationSyntax delegateDeclaration)

Parameters​

delegateDeclaration   DelegateDeclarationSyntax

Returns​

Boolean

ReturnsVoid(LocalFunctionStatementSyntax)​

Returns true if the specified local function' return type is Void.

public static bool ReturnsVoid(this Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax localFunctionStatement)

Parameters​

localFunctionStatement   LocalFunctionStatementSyntax

Returns​

Boolean

ReturnsVoid(MethodDeclarationSyntax)​

Returns true if the specified method return type is Void.

public static bool ReturnsVoid(this Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax methodDeclaration)

Parameters​

methodDeclaration   MethodDeclarationSyntax

Returns​

Boolean