C# 2.0 Language Features for Late Comers

Date September 14, 2007

C# 3.x is exciting and deserving of the spotlight, but thousands of coders are in jobs still maintaining 1.x projects and just now getting up to speed on 2.0. Some haven’t had a chance to get hip to generics and anonymous delegates.

Desert Code Camp

Date August 13, 2007

Saturday, September 15th, 2007
Desert Code Camp is a free, one-day event put on by the local Phoenix community to help promote software development. Code Camp will be held at the University of Advancing Technology (UAT) in Tempe. Check out the site to see a full list of the topics that will be presented. As part [...]

Convert a int[] to string[]

Date August 7, 2007

This morning I needed to convert an array of integers to strings and I stumbled across this nice little Array.ConvertAll generics method. My example is quite simple, but this technique could be used for much more complicated explicit casting.

1
2
3
4
5
6
7
int[] values = new int[]{1,2,3,4,5};
string[] strValues = Array.ConvertAll(values, new Converter(IntToString));
….
public static string IntToString(int integer) [...]

SimpleXmlParser

Date June 15, 2007

For the recent Facebook platform integration project I was tasked with parsing various forms of Xml returned from the Facebook REST web service. REST or Representational State Transfer, is a term coined by Roy Fielding in his Ph.D. dissertation to describe an architecture style of networked systems. In the Facebook world, to get back some [...]