Honest Illusion

Where Lightning's Still the Biggest Thrill of All...

Code'n'Stuff from James Curran, simple country programmer.
Welcome to Honest Illusion Sign in | Join | Help
in Search

Browse by Tags

All Tags » Programming » generics without collections
  • 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 & iterators?''  As it turned out, it was quite easy. First up is Take:  Given a ...
    Posted to Honest Illusion (Weblog) by James on March 9, 2007
  • SkipFirst.cs

    Here's the C# source code for my SkipFirst Modifier for foreach().  Detailed description here
    Posted to C# (FileGallery) by James on February 5, 2007
  • 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 back a very nice response saying basically, ''We thought about something like this, but ...
    Posted to Honest Illusion (Weblog) by James on February 5, 2007
  • Generics without Collections

    Here's the source code, project file and PowerPoint file for my presentation at the 3rd NJ Code Camp.
    Posted to C# (FileGallery) by James on November 20, 2006
  • 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 complained that I was talking too loudly, which I first is the first time in my life that ...
    Posted to Honest Illusion (Weblog) by James on November 20, 2006
  • 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 the type to affect the behavior of the code, without ever storing an object of that ...
    Posted to Honest Illusion (Weblog) by James on November 7, 2006
  • 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 generics --- In fact, it was exactly the way C++ programmer were using templates when they ...
    Posted to Honest Illusion (Weblog) by James on October 2, 2006
Powered by Community Server (Personal Edition), by Telligent Systems