Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 598 Bytes

RCS1048.md

File metadata and controls

34 lines (24 loc) · 598 Bytes

RCS1048: Use lambda expression instead of anonymous method

Property Value
Id RCS1048
Category Usage
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();
});

See Also

(Generated with DotMarkdown)