Skip to main content

SyntaxAccessibility.IsValidAccessibility(SyntaxNode, Accessibility, Boolean) Method

Containing Type: SyntaxAccessibility

Assembly: Roslynator.CSharp.dll

Returns true if the node can have specified accessibility.

public static bool IsValidAccessibility(Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.Accessibility accessibility, bool ignoreOverride = false)

Parameters

node SyntaxNode

accessibility Accessibility

ignoreOverride Boolean

Ignore "override" modifier.

Returns

Boolean