Note that the state of whether it's inside or outside a string is flipped after DebuggerDisplay("Id = {Id}.
Here is an almost minimal example that demonstrates the problem:
// class x
"{}"
public; // "int"
The word class inside the comment followed by some other word seems to be neccessary. Either of the braces needs to be there but both are not neccessary. The last line is just to demonstrate that the inside/outside string state has been flipped.
I noticed this here: https://github.com/StephenCleary/AsyncEx/blob/master/src/Nito.AsyncEx.Context/AsyncContext.cs
Note that the state of whether it's inside or outside a string is flipped after
DebuggerDisplay("Id = {Id}
.Here is an almost minimal example that demonstrates the problem:
The word class inside the comment followed by some other word seems to be neccessary. Either of the braces needs to be there but both are not neccessary. The last line is just to demonstrate that the inside/outside string state has been flipped.