Open
Description
ILLink generates warning for this, the analyzer should too.
We should probably share the logic that is used to parse the DebuggerDisplay string. ILLink also has some special logic to not generate a warning if it doesn't understand the string (the string could be still valid, but ILLink has a simple algorithm to parse it).
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
[DebuggerDisplay("{Blah}")]
class Program
{
public string Blah
{
[RequiresUnreferencedCode("Nope")]
get => "Hello";
}
static void Main() => Console.WriteLine("Hi");
}
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status