コード例 #1
0
 public TrailerMode(IDriveMode baseMode, IGearShifter gearShifter, IExternalSystems externalSystems)
 {
     _baseMode        = baseMode ?? throw new ArgumentNullException(nameof(baseMode));
     _gearShifter     = gearShifter ?? throw new ArgumentNullException(nameof(gearShifter));
     _externalSystems = externalSystems ?? throw new ArgumentNullException(nameof(externalSystems));
 }
コード例 #2
0
 public MDynamicsMode(AngularSpeed cutOffAngularSpeed, IDriveMode baseMode, IExternalSystems externalSystems)
 {
     _cutOffAngularSpeed = cutOffAngularSpeed ?? throw new ArgumentNullException(nameof(cutOffAngularSpeed));
     _baseMode           = baseMode ?? throw new ArgumentNullException(nameof(baseMode));
     _externalSystems    = externalSystems ?? throw new ArgumentNullException(nameof(externalSystems));
 }