Overriding ToString() for debugging and logs - should the string be localized?
问题 I'm designing a .NET library that will be used by other developers making both web and desktop applications. I'm overriding ToString() in various classes to provide information for debugging purposes and for inclusion in application log files. Some of my classes contain numbers and dates. Consider an object that contains a DateTime called date and a double called value (and maybe other fields as well)... If I override that object's ToString() , I might want to do something like: public