ChangeAccessibility(IMemberOrNamedType, Accessibility, string?)
Creates a CodeFix that changes the accessibility of a given type or member.
Declaration
public static CodeFix ChangeAccessibility(IMemberOrNamedType targetMember, Accessibility accessibility, string? title = null)Parameters
| Type | Name | Description |
|---|---|---|
| IMemberOrNamedType | targetMember | The type or member whose accessibility must be changed. |
| Accessibility | accessibility | The new accessibility. |
| string | title | An optional title of the CodeFix, displayed to the user in the light bulb or refactoring menu. When not specified, the title is generated from the other parameters. |
Returns
| Type | Description |
|---|---|
| CodeFix |