Larry Steinle

January 25, 2011

Extending IEnumerable

Filed under: VS.Net — Larry Steinle @ 11:57 pm
Tags: , , , , , , , ,

Often there is the need to take a string value and split it into an array of values. String.Split provides a quick and convenient method to split strings (as long as you don’t have to worry about text qualifiers). Today I ran into the opposite scenario. I needed to combine the different iterations of an array into a single string value.

Immediately my mind turned to extensions. A beautiful, simple and elegant solution.
(more…)

Advertisement

Can’t Find System.Runtime.CompilerServices.Extensions in VS.Net 2010

Filed under: VS.Net — Larry Steinle @ 10:49 pm
Tags:

We’ve all been there. It’s that silly, nagging thing that slows you down. You know the answer is obvious but you just can’t figure it out in a second. You know the developer beside you will point it out in an instant if you show them but your too proud to say anything.

It happens to all of us at one time or another…And another…And another. I digress…
(more…)

Create a free website or blog at WordPress.com.