Trouble reading registry key from C#
Reading from registry in C# is very simple, so I was quite stumped when my code didn’t work.
The reason however, was very simple once found: The Wow6432Node…
Reading from registry in C# is very simple, so I was quite stumped when my code didn’t work.
The reason however, was very simple once found: The Wow6432Node…
One of my harddrives recently started filling up real fast, yet I’ve put no files onto it for a long time…
Windows Backup and the Shadow Copy Provider turned out to be the explanation.
Ever wanted something similar to javascript’s eval statement in C# ? Here’s how to do it.
If you’ve done any amount of website development, you know the issues with paging your data.
With MS SQL 2005 and newer there’s an easy way to do it in your SQL queries. And it even performs better to boot!
Here I’ll sum up how to write proper paging queries with superb performance.
In ASP.Net HttpHandlers cannot access the session state by default, in order to enable them to do so, you need to implement an interface.
However this is rather simple, since the interface is just a “marker interface” as MSDN calls it. Here’s how to do it.
lock keywordet i C# er en enkel måde at håndtere tråd sikkerhed på, og i mange tilfælde også den bedste måde.
Desværre bruger en del udviklere keywordet “forkert”, så her er et oprids, af hvad man bør gøre.
Having an IIS serve static content is an excellent idea, however out-of-the-box it performs horribly for the job.
Read here how to archive a factor 20 improvement of the performance, by doing nothing but configuration.
In C# there are a few limitations to what you may use as a generic type constraint. These include delegates and enums to name a few.
However there’s a somewhat easy way to work around this limitation…
I web applikationer har man tit behov for at cache f.eks. udtræk fra DB, det er dejlig nemt med HttpRuntime.Cache.
Men hvad gør man i ikke-web applikationer ?
Caching library’et er egentlig bare en egen udviklet cache ala. den man kender fra HttpRuntime.Cache.
Dog med et par forskelle, bl.a. kræver den ikke System.Web namespacet og den er generic (så ikke noget med at typecaste hele tiden). Ellers er brugen meget den samme.