Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 584 Bytes

RCS1216.md

File metadata and controls

46 lines (36 loc) · 584 Bytes

RCS1216: Unnecessary unsafe context

Property Value
Id RCS1216
Severity Info

Example

Code with Diagnostic

public unsafe class Foo // RCS1216
{
    public Foo()
    {
        unsafe // RCS1216
        {
            Bar();
        }
    }

    private unsafe void Bar() // RCS1216
    {
    }
}

Code with Fix

public class Foo
{
    public Foo()
    {
        Bar();
    }

    private void Bar()
    {
    }
}

(Generated with DotMarkdown)