File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
src/StructureMap.DynamicInterception Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -17,27 +17,15 @@ public MethodInvocationResult(Exception exception)
1717 _exceptionDispatchInfo = ExceptionDispatchInfo . Capture ( exception ) ;
1818 }
1919
20- public bool Successful
21- {
22- get { return _exceptionDispatchInfo != null ; }
23- }
20+ public bool Successful => _exceptionDispatchInfo == null ;
2421
25- public object ReturnValue { get ; private set ; }
22+ public object ReturnValue { get ; }
2623
27- public Exception Exception
28- {
29- get
30- {
31- return _exceptionDispatchInfo != null ? _exceptionDispatchInfo . SourceException : null ;
32- }
33- }
24+ public Exception Exception => _exceptionDispatchInfo ? . SourceException ;
3425
3526 public object GetReturnValueOrThrow ( )
3627 {
37- if ( _exceptionDispatchInfo != null )
38- {
39- _exceptionDispatchInfo . Throw ( ) ;
40- }
28+ _exceptionDispatchInfo ? . Throw ( ) ;
4129
4230 return ReturnValue ;
4331 }
You can’t perform that action at this time.
0 commit comments