Any code that duplicates how the DebuggerDisplayAttribute generates the resulting string?
问题 Anyone know of any code that duplicates how the DebuggerDisplayAttribute parses and gathers the resultant string? I would like to create a custom attribute that does nearly the sample thing. Similiar to "When a breakpoint is hit..." where you can use a variable within curly braces, as in "{variable}". I already handle simple cases, such as "{Name}", but something like "{Foo.Name}" requires extra reflection code that I need help with. Basically, I want to parse a string using the rules defined