Browse by Tags

All Tags » IL (RSS)

“Try to avoid foreach/for loops”–Over my Dead Body!

Before I get into this a little bit, know that my comments are a direct response to this post: http://www.codekicks.com/2011/01/try-to-avoid-foreachfor-loops.html . The reason I’m writing this post is because the author is making invalid comparisons through...
Posted by zowens | 8 comment(s)
Filed under: , ,

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

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; } }
Posted by zowens | 12 comment(s)
Filed under: , , ,

Converting to and from VB and C#

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...
Posted by zowens | 9 comment(s)
Filed under: , , , ,
More Posts