Move unsafe context to containing declaration
Property | Value |
---|---|
Id | RR0202 |
Applicable Syntax | unsafe declaration |
Syntax Span | unsafe 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