RCS1048: Use lambda expression instead of anonymous method
Properties
Property | Value |
---|---|
Default Severity | Info |
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();
});