Skip to main content

ModifierListInfo.WithExplicitAccessibility(Accessibility, IComparer<SyntaxKind>) Method

Containing Type: ModifierListInfo

Assembly: Roslynator.CSharp.dll

Creates a new ModifierListInfo with accessibility modifiers updated.

public Roslynator.CSharp.Syntax.ModifierListInfo WithExplicitAccessibility(Microsoft.CodeAnalysis.Accessibility newAccessibility, System.Collections.Generic.IComparer<Microsoft.CodeAnalysis.CSharp.SyntaxKind>? comparer = null)

Parameters

newAccessibility Accessibility

comparer IComparer<SyntaxKind>

Returns

ModifierListInfo