Report question

Question: Any code that duplicates how the DebuggerDisplayAttribute generates the resulting string?