Monday, October 18, 2010

Public token key

With the 'sn.exe' tool of Visual Studio it is possible to retrieve the public token key. But watch for the casing!!

Use the command: sn.exe -Tp "FilePath to assembly"

Tuesday, October 12, 2010

Fiddler and localhost

Working with Fiddler for seeing the details of the Http request of a website is usefull for optimizing the performance of a website. Check if there are unneeded requests or if there are many requests which triggers a 404.

A tip when working with localhost you must http://localhost.:1519/default.aspx instead of
http://localhost:1519/default.aspx. So add a point behind the hostname.

IEnumerable Empty

When creating an IEnumerables, I mostly returned a null value when there are no values for the collection. But it is in some situations better to return an empty collection. This can be done with the Enumerable.Empty method.