Skip to main content

RCS1048: Use lambda expression instead of anonymous method

Properties​

PropertyValue
Default SeverityInfo
Minimum language version-

Examples​

Example #1​

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

Applies to​