Permalink
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (42 sloc) 959 Bytes

RCS1216: Unnecessary unsafe context

Property Value
Id RCS1216
Category Redundancy
Default Severity Info
Enabled by Default
Supports Fade-Out
Supports Fade-Out Analyzer -

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)