Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 729 Bytes

RCS1216.md

File metadata and controls

51 lines (39 loc) · 729 Bytes

RCS1216: Unnecessary unsafe context

Property Value
Id RCS1216
Category Redundancy
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()
    {
    }
}

See Also

(Generated with DotMarkdown)