Search
Free Signup | Login
Search Blogs
Relevant Links
.NET
Author: revindex Created: 7/5/2007 11:50 PM
C# VB.NET .NET programming

Global Catch All Exception in .NET Winform and Console Application
By revindex on 8/6/2007 2:49 PM
You normally want to catch all exceptions at the highest tier in code so that your program has the chance to display the error message to the user or log it to the appropriate location. Under ASP.NET, you can do so easily by overriding the Application_Error event in Global.asax file. In a windows form or console application, the equivalent global catch all is available by listening to the ThreadException and AppDomain UnhandledException events. (winform, .NET, C#, VB.NET)
Comments (5) More...

Quickly Sort A Collection Using Generics and Anonymous Delegate
By revindex on 8/2/2007 12:36 AM
One nice enhancement that came with .NET 2.0 is the ability to sort a custom collection quickly by making use of anonymous delegates and generics. In the past on .NET 1.1, you had to create a Comparer class implementing the IComparer interface. (ASP.NET)
Comments (1) More...