Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 518 Bytes

File metadata and controls

13 lines (8 loc) · 518 Bytes

C# Coding Guidelines

Only Override ToString for Debugging Purposes

As a general rule, only override the ToString method for debugging purposes, and consider adding the DebuggerDisplay attribute instead of overriding ToString.

Only when a class has an obvious culture-invariant string rendering should you consider using ToString for that purpose.