Post

Xbox Live GamerCard .net class (C#)

A friend of mine; Dan Strandberg put together a nice Vista Sidebar gadget for showing your Xbox Live GamerCard (Look here).

I couldn’t resist creating a C# class that can be used from any .net application to extract all the data. Based upon Dans (nice regexes.. :) ) work I’ve put together a simple class that one can use for this purpose (download here). I’ve also put together a simple WinForms application that uses it (download here).

XboxLiveGamerCard.netclassC_12020_image_2

The usage is very simple :

1
2
GamerCard.Loaded += new GamerCardLoadedEventHandler(GamerCard_Loaded);
GamerCard card = GamerCard.Create("Adept DoLittle");
1
2
3
4
5
void GamerCard_Loaded(GamerCard gamerCard)
{


}
This post is licensed under CC BY 4.0 by the author.