Category: .Net

Delegates explained

Delegates can be seen as interfaces for methods. Let’s look at an example of a delegate and what it really represents. delegate double Calculation(double one, double two);All this line of code really does, is tell the class it is in that there might be one or more methods with the given signature: a method returning …

Read More “Delegates explained”

C# XmlSerializer FileNotFound exception

When using XmlSerializer in .Net on a self-made class, you might receive the FileNotFound exception at runtime upon instantiating the serializer. You don’t get enough info to debug this problem, and the filename of the file it didn’t find can’t explain much either, because the dll-name is different ‘garbage’ every time. XmlSerializerPreCompiler to the rescue …

Read More “C# XmlSerializer FileNotFound exception”

ASP.Net 2.0

To be honest, I’m glad I’m not on an ASP.Net project right now. I saw ASP.Net 2.0 in action last Friday, and I would go crazy if I would have to do an ASP.Net 1.1 project now.2.0 and the new Visual Studio 2005 (Whidbey) take a lot of ‘standard work’ out of the developers’ hands, …

Read More “ASP.Net 2.0”