Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1010 Bytes

RCS1244.md

File metadata and controls

39 lines (27 loc) · 1010 Bytes

RCS1244: Simplify 'default' expression

Property Value
Id RCS1244
Category Simplification
Severity Hidden
Minimal Language Version 7.1

Summary

This analyzer is similar to IDE0034 but there are some differences. For example this analyzer does not simplify 'default' expression passed as an argument expression.

Example

Code with Diagnostic

Foo M(Foo foo = default(Foo)) // RCS1244
{
    return default(Foo); // RCS1244
}

Code with Fix

Foo M(Foo foo = default)
{
    return default;
}

See Also

(Generated with DotMarkdown)