March 2006 - Posts

How do I play default Windows sounds?
27 March 06 07:03 PM
Sometimes, you might want to make your application a bit more audible. If you are using .NET 2.0, you can utilize the new System.Media namespace and its SystemSound and SystemSounds classes. The SystemSounds class contains five static properties that Read More...
Postedby CSharpFAQ | 2 Comments    
Filed under:
How can I easily log a message to a file for debugging purposes?
27 March 06 06:59 PM
Often, you need a way to monitor your applications once they are running on the server or even at the customer site -- away from your Visual Studio debugger. In those situations, it is often helpful to have a simple routine that you can use to log messages Read More...
Postedby CSharpFAQ | 8 Comments    
Filed under:
How can I speed up hashtable lookups with struct object as keys?
20 March 06 06:54 PM
When you have struct objects as the key in a hashtable, the lookup operation of the hashtable performs miserably. This can be attributes to the GetHashCode() function which is used internally to do the lookup. If a struct contains only simple value types Read More...
Postedby CSharpFAQ | 21 Comments    

This Blog

Syndication

Page view tracker