Navigation
More about Kim Bjørn Tiedemann
My home
Debugging XmlSerializer
10.12.2006 | 0 Kommentarer
XmlSerializer fungerer ved, at der on-the-fly genereres assemblies som er ansvarlige for at serialisere og deserialisere objekter. Den genererede assembly fungerer som en parser, der kan parse og skrive en xml repræsentation af en instans.
Frameworket kan debugges ved at tilføje følgende til *.config filen:
<system.diagnostics>
<switches>
<add name="XmlSerialization.Compilation" value="1" />
</switches>
</system.diagnostics>
Dette får assembly genereringsprocessen til at gemme den genererede assembly i
c:\documents and settings\[username]\local settings\temp
Den genererede assembly ligger repræsenteret som den nyeste *.cs fil i mappen. Assembly'en genereres når XmlSerializer bliver instantieret og man kan derfor placere et breakpoint umiddelbart efter instantieringen af XmlSerializeren.
XmlSerializer xmlSerializer = new XmlSerializer(typeof(TestClass)); TestClass tc = (TestClass)xmlSerializer.Deserialize(xmlReader);
Man kan umiddelbart steppe ind i Deserialize metoden og Visual Studio vil automatisk finde koden.
New CVS checkin of deliciousdotnet class library
05.25.2006 | 0 Kommentarer
I have just checked in some changes to the deliciousdotnet class library so it is up-to-date with the changes the del.icio.us guys made to the API.
The communication with the API is now secure using https and the url of the API has changed to http://api.del.icio.us/v1.
Please update if you are using the class library in your applications.
/tiede
The communication with the API is now secure using https and the url of the API has changed to http://api.del.icio.us/v1.
Please update if you are using the class library in your applications.
/tiede
Del.icio.us DotNet API initial checkin
03.21.2006 | 0 Kommentarer
So I managed to do the first initial CVS check-in for the Del.icio.us .Net API. For the time being I have not made a binary release, but you can access the source code at Sourceforge.net.
You can build the class library using Visual Studio 2005 (and I presume Visual Studio 2003 since I do not use any .Net 2.0 specific stuff).
Please give some feedback in the forums if you find this class library useful or if you think it needs more functionality, has errors etc.
You can build the class library using Visual Studio 2005 (and I presume Visual Studio 2003 since I do not use any .Net 2.0 specific stuff).
Please give some feedback in the forums if you find this class library useful or if you think it needs more functionality, has errors etc.
DotNet del.icio.us API library
03.05.2006 | 0 Kommentarer
Im doing a minor project now in my spare time. I have become very addicted to the del.icio.us service and Im using it a lot at the moment. Im primarily a Java guy but I have worked on a C# project earlier and I wanted to refresh my "skills" within DotNet.
So why not combine the two? I have started a sourceforge project and will commit code soon. Its a DotNet class library coded in C#. The class library is intended to wrap the del.icio.us API and I thought of the following design:
I will keep you posted on this site when Im ready to submit some code. You can also keep an eye on the sourceforge page.
So why not combine the two? I have started a sourceforge project and will commit code soon. Its a DotNet class library coded in C#. The class library is intended to wrap the del.icio.us API and I thought of the following design:
DeliciousFactory factory = DeliciousFactory.GetDeliciousFactory(username, password);The Post class will contain the attributtes that are contained in the posts request from the del.icio.us API.
GetPostRequest request = new GetPostRequest();
request.Tag = "oracle";
request.Dt = new DateTime(2006, 03, 02);
Post[] posts = factory.GetPosts(request);
I will keep you posted on this site when Im ready to submit some code. You can also keep an eye on the sourceforge page.