# Wednesday, January 28, 2009

CommaDelimitedStringCollection - for when you want to write a comma delimited string from a collection !

Amazing that I still find BCL classes every day in .NET to do simple tasks.  I had a feeling that something may exist but didn't expect to find it in the System.Configuration namespace.

using System.Configuration;

CommaDelimitedStringCollection strings = new CommaDelimitedStringCollection();

foreach(string item in myOtherCollection)
{
    strings.Add(item);
}

//Spit out your comma separated string
string output = strings.ToString();

Simple!

posted on Wednesday, January 28, 2009 3:32:30 PM (AUS Eastern Daylight Time, UTC+11:00)  #    Comments [1]
# Monday, January 19, 2009

SANS Institute - Top 25 Dangerous Programming errors

This is really quite interesting.  A lot of stuff that's well known, but a good resource to go back to when you're designing a new system.  There's probably not a system I've ever seen that doesn't exhibit at least one of these in some minor way...

http://www.sans.org/top25errors/

posted on Monday, January 19, 2009 4:09:22 PM (AUS Eastern Daylight Time, UTC+11:00)  #    Comments [0]

The very reason I write in a blog

Some amusement today as I was trying to set up hibernation on my Windows XP box at work.  I was getting a strange error about 'not enough system resources to complete API'.  After a bit of mucking around I realised I'd actually encountered this very same error a while ago.

I actually used my own blog to fix a problem I'd had before and completely forgot about. 

Funny

posted on Monday, January 19, 2009 3:16:04 PM (AUS Eastern Daylight Time, UTC+11:00)  #    Comments [0]