mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-03-12 11:42:06 +00:00
Follow most of the guideline suggestions from VS2019 preview. Pretty good suggestions!
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -45,10 +45,7 @@ namespace EightBit
|
||||
|
||||
public ushort Word
|
||||
{
|
||||
get
|
||||
{
|
||||
return (ushort)(this.Low | Chip.PromoteByte(this.High));
|
||||
}
|
||||
get => (ushort)(this.Low | Chip.PromoteByte(this.High));
|
||||
|
||||
set
|
||||
{
|
||||
@@ -84,12 +81,7 @@ namespace EightBit
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
var rhs = obj as Register16;
|
||||
if (rhs == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return rhs.Low == this.Low && rhs.High == this.High;
|
||||
return rhs == null ? false : rhs.Low == this.Low && rhs.High == this.High;
|
||||
}
|
||||
|
||||
public override int GetHashCode() => this.Word;
|
||||
|
||||
Reference in New Issue
Block a user