- We have a class called LogException. The class implements a CaptureException method using the following code segment: public static void CaptureException(Exception ex). Pick one of the following syntaxes to make sure all exceptions in the class are captured and rethrow the original exception, including the stack:
-
catch (Exception ex) { LogException.CaptureException(ex); throw; }
-
catch (Exception ex) { LogException.CaptureException(ex); throw ex; }
-
catch { LogException(new Exception()); }
-
catch { var ex = new Exception(); throw ex; }
-
- You are creating a class named Store, which should have a Store Type member that meets the following requirements:
- The member must be accessible publicly.
- The member must only acquire ...
Mock Test 1
Get Programming in C#: Exam 70-483 (MCSD) Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.