Skip to main content

Move unsafe context to containing declaration

PropertyValue
IdRR0202
Applicable Syntaxunsafe declaration
Syntax Spanunsafe modifier
Enabled by Default

Usage

Example #1

before.cs
public class Foo
{
public unsafe void Bar()
{
}
}
after.cs
public unsafe class Foo
{
public void Bar()
{
}
}

Configuration

roslynator_refactoring.move_unsafe_context_to_containing_declaration.enabled = true|false