Continuing in our weekly blog post series that highlights a few of the new additions to the Framework Design Guidelines 2 nd edition .. This content is found in the Object.ToString section of Chapter 8: Usage Guidelines. Christophe provides some great implementation tips for these guidelines. DO try to keep the string returned from ToString short. The debugger uses ToString to get a textual representation of an object to be shown to the developer. If the string is longer than the debugger can display (typically less than one screen length), the debugging experience is hindered. CHRISTOPHE NASARRE In term of debugging experience, you should decorate your type with DebuggerDisplayAttribute in addition to overriding ToString for that particular...(read more) ...
Go to the complete details ...