Sorry if that question has no answer.. What is the easiest and non-verbose way to make all the strings in C# application trimmed by default? Creating new Type, or extension method, or Attribute? Are there any hacks or settings to decrease number of Trim() calls?
UPD. Well, I have no particular case - just a lot of user input from UI or Excel or something else, and you should always keep in mind and Trim(), Trim(), Trim(). I really wonder why strings are not trimmed by default in C#.