Your Websites, Our Passion! : Spell checker for HTML, ASP.NET, JScript, VB, C#, CSS and C++ for Visual Studio 2005 and 2008

Advertisements

Rethrowing exceptions and preserving the full call stack trace – Fabrice’s weblog

Une très bonne explication du throw et throw ex et une information permettant d’aller plus loin:

MethodInfo preserveStackTrace = typeof(Exception).GetMethod("InternalPreserveStackTrace",
    BindingFlags.Instance | BindingFlags.NonPublic);

Rethrowing exceptions and preserving the full call stack trace – Fabrice’s weblog