Probe into the best practices of exception handling, and see a few effective error handling strategies to use in your projects.
Latest Error Handling Articles
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.
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.
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.
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.
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.
Latest CodeGuru Developer Columns
With the addition of the C/C++ extension to Visual Studio Code, you might have what is needed in a small, cross-platform editor.
Learn to use LiteDB, is a simple, serverless, fast and lightweight, embedded .NET document database written in .NET C# managed code.
Explore a very simple technique to accomplish a panning effect with your images.
Onion Architecture addresses the challenges faced with 3-tier and n-tier architectures, and provides a solution for common problems.