Archives

Anticipation

  • No dates present

Excessive whitespace in XmlWriter

I’ve had this post kicking around in my drafts folder for a while now, and hey, it’s only been a year or two since my last post. My how time flies.

This is just a short bit of utility code I felt like sharing in case anyone else runs into the same problem I did.

[…]

Multi-thread auto_ptr

So, last time I talked a bit about lock-free data structures. Here’s the second part, as promised.

I’m not going to go into great detail on the topic (unless people seem interested), and there’s plenty of other pages and sites dedicated to it. But I just wanted to share this little class I made. I […]

Lock Free

As part of my day job, I’m always striving towards higher performance code while at the same time trying to retain a readable and flexible design (since customers are always changing what they want).

One of the big killers of performance is locks — they’re the most basic way to ensure mutual-exclusion of shared data […]

AppDomains and unmanaged callbacks, redux

Quite a while back, I posted an article about getting native callbacks to work across AppDomains. Since then, I’ve gotten quite a few comments with varying levels of confusion, and seen a few implementations that appear to have missed something along the way. So I thought it’d be a good idea to post a clarification.

[…]

Conversion Filter

Finally, the last post in my series about conversion and the LookupConverter.

This is just a quick addition to extend the capabilities of the LookupConverter, specifically to allow it to run a bit of code to determine which resulting value to use. I’ve actually never used this in a real-world scenario myself (I’ve always found […]

A Tableau of Conversion

Some people might be wondering why I said that the last two Programming posts were part of a series — after all, the first one was a utility class to help out with type conversion, while the second one focused on using enumerations in the UI. How is that a series? Well, it’s this post […]

Combos of Enums

It’s probably about time that I continued on from my previous post. This one is just going to be a short one, but it’s a nice setup for the following post in the series.

When you have a property which can only have one of a limited number of values, there are a few different […]

Clever Conversion

I’ve been planning to post this (and a few other things) for a while now, but never quite seemed to get around to it. Well, brace yourselves, because here it finally is! (And it might even turn into an actual series!)

This first part is pretty straightforward; it’s a helper class designed to make a […]

Templates Galore

(Well, look at that. I did manage to write another Programming post after all.)

One of the really great things about WPF is its composable UI structure and dynamic layouts — the ability to replace one set of controls with another on the fly as things happen (eg. when something is selected by the user) […]

StringFormatConverter

Today’s topic is fairly basic, but hey, it gives me a chance to moan about something weird in the framework, so it’s not all bad

Windows Presentation Foundation. WPF. Essentially it’s a long-overdue reboot of the child window model coupled with a powerful data binding engine (though not without its own quirks). And I […]