Exception handling can be a costly affair and should be used meticulously as it undoubtedly serves as an integral part of our applications and shouldn't be sidelined for any reason. The common problem in implementing an exception handling mechanism is the dependency on the library after we create a provider. This C# tutorial looks at the possibility of switching the providers easily.
Latest Error Handling Articles
.NET Tip: Throwing Custom Exceptions
Use custom exceptions to add information that will be more meaningful to your users when exceptions occur. And, you still can maintain all the information from the original exception.
.NET Tip: Throwing Exceptions: Will You be Able to Catch What You Expect?
Handling exceptions can sometimes be a little tricky. If you are not careful, your code may act on the wrong information. Learn how to bubble up exceptions while keeping the original exception information intact.
.NET Tip: Implement IDisposable to Ensure Your Objects Clean Up After Themselves
Be a good resource citizen by implementing IDisposable. You will be able to ensure that your objects have the opportunity to release all of their managed and unmanaged resources.
.NET Tip: Managing Resources with the Using Statement
Take control of the lifetime of your objects. Release your object's resources on your schedule, not when the CLR determines they are no longer needed.
Managing Exceptions in .NET
Learn about the techniques and guidelines you can use to make your application stable and less prone to errors, hande errors in a graceful manner, and avoid crashing.
Latest Developer Videos
More...Latest CodeGuru Developer Columns
MFC Integration with the Windows Transactional File System (TxF)
The Transactional File System (TxF), which allows access to an NTFS file system to be conducted in a transacted manner through extensions to the Windows SDK API. MFC 10, has been extended to support TxF and related technologies. This support allows existing MFC applications to be easily extended to support kernel transactions.
.NET Framework: Collections and Generics
The original release of the .NET Framework included collections as .NET was introduced to the Microsoft programming world. The .NET Framework 2.0 introduced generics to complement the System.Collections namespace and provide a more efficient and well performing option. Read on to learn more...
Input and Output with VB.NET 2010
The .NET runtime has everything you need to format your output and handle special characters. Both Visual Basic 2010 Express edition and Visual Studio 2010 help you with Intellisense if you can't remember the syntax. This article explores simple console input and output and shows you how to get it done.
WCF, ASP.NET MVC, and the new ASP.NET Web API
If WCF and ASP.NET MVC had offspring it would be named ASP.NET Web API. Like WCF, Web API is built for Web Service development. Only instead of building on WCF data structures; Web API embraces an MVC style experience. The result makes Web Service development more accessible to ASP.NET developers and gets WCF developers closer to HTTP.