Open
Description
VS 16.5.0. Repro:
using System.Linq;
using System.Threading;
class C
{
void M()
{
typeof(C).GetMethod(nameof(M));
}
}
Apply the fix:
using System.Linq;
using System.Reflection;
using System.Threading;
class C
{
void M()
{
typeof(C).GetMethod(nameof(M), BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
}
}
Then save, close the file, and reopen:
Maybe it's using SyntaxFactory.LineFeed
instead of SyntaxFactory.ElasticLineFeed
? Though I would have expected the formatter to take care of both.