Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 468 Bytes

RCS1048.md

File metadata and controls

29 lines (21 loc) · 468 Bytes

RCS1048: Use lambda expression instead of anonymous method

Property Value
Id RCS1048
Severity Info

Example

Code with Diagnostic

var x = items.Select(delegate (object f) // RCS1048
{
    return f.ToString();
});

Code with Fix

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

(Generated with DotMarkdown)