Forgotten .NET Gem --- StringDictionary

14 Oct 2017 -

Forgotten .NET Gem — StringDictionary In the olden days of .NET v1.1, before we had generics, when collections were liimited to arrays and ArrayList, Microsoft tried to fill the gap with a few niche collection classes, which it placed in the nearly forgotten System.Collection.Specialized namespace. Most were superceded by generic version once .NET v2.0 came...

Read more ...

Every --- Doing Something Occasionally

12 Oct 2017 -

Every — Doing Something Occasionally I recently had a need for a class I wrote a long time ago in C++. But I was working in C#, so I had to recreate it. Fortunately. with lambdas and closures. the C# version was much easier than the last one. Sometimes, when looping through a large collection,...

Read more ...

TimeRange - a TimeSpan alternative

10 Oct 2017 -

TimeRange - a TimeSpan alternative. Today I wrote a class to build a report. It has a method to retrieve data over a given range of dates. Sometimes it will one day, other times, three months or a year. I wanted to paramterize that, but that wasn’t as easy as it seems. Now, I could...

Read more ...

Fun with Interpolated Strings, Part II -- Putting FormattableString to work.

26 Sep 2017 -

Ok, I know, I promised a big new article – and it is coming – but, I had another idea I thought I give you. So, let’s return to everyone’s favorite C#7 feature : Interpolated strings. Now, one of the coolest things about them, is that they are completely compiler magic. When you write var...

Read more ...

Fun With Interpolated Strings

16 Sep 2017 -

Hard to believe it’s been over two years since my last blog post. I’ve been busy… OK, I’ve just been lazy. Actually, I’ve just been at a series of contract assignments which didn’t lead to any techniques worth writing about. However, at my new job, they let me play around with the code, so now...

Read more ...

Older Posts......