Microsoft Technology
Throw Vs Throw ex Posted: 29 Jun 2010 08:41 AM PDT Throw Throw Ex try { // do some operation that can fail } catch (Exception ex) { // do some local cleanup throw ; } try { // do some operation that can fail } catch (Exception ex) { // do some local cleanup throw ex; } It preserve the Stack information with Exception It Won't Send Stack information with Exception This is called as "Rethrow" This is called as "Breaking the Sta...
Comments
Post a Comment