InterviewSolution
| 1. |
Does The System.exception Class Have Any Cool Features? |
|
Answer» Yes - the feature which stands out is the StackTrace property. This provides a call stack which records where the exception was thrown from. For example, the following code: Note, however, that this stack trace was produced from a debug build. A release build may OPTIMISE away some of the method calls which could mean that the call stack isn't quite what you expect. Yes - the feature which stands out is the StackTrace property. This provides a call stack which records where the exception was thrown from. For example, the following code: Note, however, that this stack trace was produced from a debug build. A release build may optimise away some of the method calls which could mean that the call stack isn't quite what you expect. |
|