Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 594 Bytes

RCS1021.md

File metadata and controls

31 lines (21 loc) · 594 Bytes

RCS1021: Convert lambda expression body to expression-body

Property Value
Id RCS1021
Category Simplification
Severity Info

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)