Welcome to Atalasoft Community Sign in | Join | Help

Browse by Tags

All Tags » C# generics collection programming   (RSS)

Even More IEnumerable<T> Fun

This post is going to cover how to use (and abuse) extension methods to make it easier to write compilers and interpreters or to write code metrics tools. Right now, it’s straight forward to loop over a set of paths, load assemblies (that can be loaded)

Make It Feel Like Syntax

I chose my career wisely.  I can tell because at least once a week I run across a nifty small thing that makes programming feel new again.  It’s not that I’m a sucker for novelty, it’s more that when I see something particular clever that makes

Making Streams Enumerable

In this post, I’ll show you a quick hack to make Stream objects enumerable.  This is nice because once done, you can treats Streams as C# 2.0 iterators, which lets us play all kinds of fun games with lambda expressions. First we’ll start with an

Generic Fiddling

I spent an hour yesterday playing with generics to get my chops up a little better. After reading Krzystof Cwalina's post on the layout of the generic collections, I came up with this little gem: public class UniqueCollection<T> : Collection<T>