Thought I'd post a quick extension method that I made today. Hope it helps someone. public static string RemoveWhitespace( this string str) { try { return new Regex( @"\s*" ).Replace(str, string .Empty); } catch (Exception) { return str; } }
The easiest way to convert from VB to C# or C# to VB is this: learn the language . I am a BIG VB fan. I've been using VB for nearly 6 years, both VB6 and VB as a part of the .NET framework, and I get arround when it comes to VB. But I recently came across...