About the author

Steven Harmansteven harman :: makes sweet software with computers!

For recent posts and more about me, scroll to the bottom.

Sponsors

Subscribe

  • Subscribe to my feed. via RSS
  • Subscribe via email via email

codeblock

There are 1 entries for the tag codeblock

Get Ruby-esq Each Iterators in C# 3.0

Yes, Ruby and other dynamic languages are all the rage these days. Yes, using Extension Methods in C# 3.0 is overplayed. But you know what... I don’t care! So I’m going to show you an Extension Method that will bring a little Ruby-goodness to your hum-drum C# world. The Ruby goodness One of my favorite control structures in Ruby is the each method. This method can be used on any string, array, or hash to quickly iterate over each character of a string, item of an array, or key/value pair of a hash. That’s...