@@ -42,25 +42,25 @@ public IEnumerable<int> InvokeEvents(IEnumerable<int> codes)
4242 switch ( code )
4343 {
4444 case Simulation . BeforeValidation :
45- EventBeforeValidation . Invoke ( this , EventArgs . Empty ) ;
45+ EventBeforeValidation ? . Invoke ( this , EventArgs . Empty ) ;
4646 break ;
4747
4848 case Simulation . AfterValidation :
49- EventAfterValidation . Invoke ( this , EventArgs . Empty ) ;
49+ EventAfterValidation ? . Invoke ( this , EventArgs . Empty ) ;
5050 break ;
5151
5252 case Simulation . BeforeSetup :
53- EventBeforeSetup . Invoke ( this , EventArgs . Empty ) ;
53+ EventBeforeSetup ? . Invoke ( this , EventArgs . Empty ) ;
5454 break ;
5555 case Simulation . AfterSetup :
56- EventAfterSetup . Invoke ( this , EventArgs . Empty ) ;
56+ EventAfterSetup ? . Invoke ( this , EventArgs . Empty ) ;
5757 break ;
5858 case Simulation . BeforeUnsetup :
59- EventBeforeUnSetup . Invoke ( this , EventArgs . Empty ) ;
59+ EventBeforeUnSetup ? . Invoke ( this , EventArgs . Empty ) ;
6060 break ;
6161
6262 case Simulation . BeforeExecute :
63- EventBeforeExecute . Invoke ( this , EventArgs . Empty ) ;
63+ EventBeforeExecute ? . Invoke ( this , EventArgs . Empty ) ;
6464
6565 if ( this is IBiasingSimulation )
6666 {
@@ -70,7 +70,7 @@ public IEnumerable<int> InvokeEvents(IEnumerable<int> codes)
7070 break ;
7171
7272 case Simulation . AfterExecute :
73- EventAfterExecute . Invoke ( this , EventArgs . Empty ) ;
73+ EventAfterExecute ? . Invoke ( this , EventArgs . Empty ) ;
7474 break ;
7575
7676 case AC . ExportSmallSignal :
0 commit comments