Apply all analysis suggestions

This commit is contained in:
Adrian Conlon
2024-10-12 09:14:29 +01:00
parent 3d9b0aac56
commit 9aa25fed7e
17 changed files with 304 additions and 323 deletions
+11 -10
View File
@@ -18,27 +18,28 @@ namespace EightBit
public event EventHandler<EventArgs>? LoweredPOWER;
public bool Powered => POWER.Raised();
public bool Powered => this.POWER.Raised();
public ref PinLevel POWER => ref _powerLine;
public ref PinLevel POWER => ref this._powerLine;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1030:Use events where appropriate", Justification = "The word 'raise' is used in an electrical sense")]
public virtual void RaisePOWER()
{
if (POWER.Lowered())
if (this.POWER.Lowered())
{
OnRaisingPOWER();
POWER.Raise();
OnRaisedPOWER();
this.OnRaisingPOWER();
this.POWER.Raise();
this.OnRaisedPOWER();
}
}
public virtual void LowerPOWER()
{
if (POWER.Raised())
if (this.POWER.Raised())
{
OnLoweringPOWER();
POWER.Lower();
OnLoweredPOWER();
this.OnLoweringPOWER();
this.POWER.Lower();
this.OnLoweredPOWER();
}
}