Browse by Tags

All Tags » .NET » IL (RSS)

One-Line C# #1 : Remove Whitespace from a string by zowens

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; } }
Filed under: , , ,

Converting to and from VB and C# by zowens

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...
Filed under: , , , ,
More Posts