Prefer expression body for properties
MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/StateMatrix.cs
WalletWasabi/Gma/QrCodeNet/Encoding/StateMatrix.cs
internal MatrixStatus this[MatrixPoint point]
{
- get
- { return this[point.X, point.Y]; }
- set
- { this[point.X, point.Y] = value; }
+ get => this[point.X, point.Y];
+ set => this[point.X, point.Y] = value;
}
public int Width { get; }

MODIFY
WalletWasabi/Models/ChaumianCoinJoin/MixingLevels.cs
WalletWasabi/Models/ChaumianCoinJoin/MixingLevels.cs
@@ -82,7 +82,7 @@ namespace WalletWasabi.Models.ChaumianCoinJoin
}
return _schnorrPubKeys;
}
- set { _schnorrPubKeys = value; }
+ set => _schnorrPubKeys = value;
}
public int GetMaxLevel() => Levels.Count - 1;

MODIFY
WalletWasabi/Mono/OptionValueCollection.cs
WalletWasabi/Mono/OptionValueCollection.cs
@@ -268,7 +268,7 @@ namespace Mono.Options
public List<string> Values { get; set; } = new List<string>();
public OptionContext C { get; set; }
- object IList.this[int index] { get { return this[index]; } set { (Values as IList)[index] = value; } }
+ object IList.this[int index] { get => this[index]; set => (Values as IList)[index] = value; }
#endregion IList
@@ -317,10 +317,7 @@ namespace Mono.Options
AssertValid(index);
return index >= Values.Count ? null : Values[index];
}
- set
- {
- Values[index] = value;
- }
+ set => Values[index] = value;
}
#endregion IList<T>

Prefer expression body for properties