Welcome to Honest Illusion Sign in | Join | Help

Browse by Tags

All Tags » C# » Generics without Collections   (RSS)

More Fun with C# Iterators: Take, Skip, TakeWhile, SkipWhile

As I was reading this article by Granville Barnett on some of the new operators available on LINQ queries, I thought, "That's all well and good, but for the time being, we're living in a .Net 2.0 world. I wonder if I could emulate those with just generics

C# Code: Adding Skip First to Foreach

A couple years back, I made a proposal online for a new feature in C#. It gathered some interest in the newsgroup. I later emailed it to someone on the C# team at Microsoft (I believe it was Eric Gunnerson but I'd really have to look it up), who emailed

Generics without Collections, Pt. 3

Over the weekend, I attended the third NJ Code Camp. And since the moderators asked nicely, I presented this series as a talk. Overall, the lecture didn't go well. (I was too nervous and talk too quickly. Oddly, on one of the evaluation sheets, someone

Generics without Collections, pt. 2

My previous article on this subject dealt with creating a lazy-loaded data type. But, if you think about it, that's realy just a collection, with just one item. I promised you use of generics without collections, so let's move this to the next step, using

Generics without Collections

Having moved to C# after years of being a C++ programmer, I was quite happy when generics were added to C#. I could finally do some of the things I was doing before with C++'s templates. However, I noticed something about how C# programmers were using