[mb-devel] No C# samples?

Lukáš Lalinský lalinsky at gmail.com
Sat Jan 6 21:57:10 UTC 2007


Mark Garvin  wrote / napísal(a):
> Your replies seem to indicate that there is no C# sample code
> available at present. Picture vs 1000 words and all, wouldn't
> it be good to have a basic skeleton of a running app in various
> languages? (especially C#).  That would be a good start for the
> OP, and maybe a compelling illustration for others.

I've put something simple together, see the attachment. It uses libdiscid [1] to
calculate a DiscID, System.Net.WebClient to get the XML from the web service and
then System.Xml.XmlDocument to parse it to a DOM tree. It's written for Linux,
but I think that porting it to Windows should be only matter of changing
"libdiscid.so.0" to "discid.dll".

[1] http://musicbrainz.org/doc/libdiscid

> PS: Are there no C# programmers onboard?

Ex-C# programmer here :) I wrote this sample mainly because I wanted to try Mono
  (I used to work only with MS tools).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdlookup.cs
Type: text/x-csharp
Size: 3761 bytes
Desc: not available
Url : http://lists.musicbrainz.org/pipermail/musicbrainz-devel/attachments/20070106/1fb828e3/cdlookup.bin


More information about the MusicBrainz-devel mailing list