Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 812 Bytes

RCS1021.md

File metadata and controls

34 lines (24 loc) · 812 Bytes

RCS1021: Simplify lambda expression

Property Value
Id RCS1021
Category Simplification
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer

Example

Code with Diagnostic

var x = items.Select(f =>
{ // RCS1021
    return f.ToString();
});

Code with Fix

var x = items.Select(f => f.ToString());

See Also

(Generated with DotMarkdown)