Prefer expression-bodied members for properties
MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/BitList.cs
WalletWasabi/Gma/QrCodeNet/Encoding/BitList.cs
@@ -124,12 +124,6 @@ namespace Gma.QrCodeNet.Encoding
internal int Count { get; private set; }
- internal int SizeInByte
- {
- get
- {
- return (Count + 7) >> 3;
- }
- }
+ internal int SizeInByte => (Count + 7) >> 3;
}
}

MODIFY
WalletWasabi/Mono/OptionValueCollection.cs
WalletWasabi/Mono/OptionValueCollection.cs
@@ -176,8 +176,8 @@ namespace Mono.Options
(Values as ICollection).CopyTo(array, index);
}
- bool ICollection.IsSynchronized { get { return (Values as ICollection).IsSynchronized; } }
- object ICollection.SyncRoot { get { return (Values as ICollection).SyncRoot; } }
+ bool ICollection.IsSynchronized => (Values as ICollection).IsSynchronized;
+ object ICollection.SyncRoot => (Values as ICollection).SyncRoot;
#endregion ICollection
@@ -208,8 +208,8 @@ namespace Mono.Options
return Values.Remove(item);
}
- public int Count { get { return Values.Count; } }
- public bool IsReadOnly { get { return false; } }
+ public int Count => Values.Count;
+ public bool IsReadOnly => false;
#endregion ICollection<T>
@@ -263,7 +263,7 @@ namespace Mono.Options
(Values as IList).RemoveAt(index);
}
- bool IList.IsFixedSize { get { return false; } }
+ bool IList.IsFixedSize => false;
public List<string> Values { get; set; } = new List<string>();
public OptionContext C { get; set; }

MODIFY
WalletWasabi/Mono/ResponseFileSource.cs
WalletWasabi/Mono/ResponseFileSource.cs
@@ -168,10 +168,7 @@ namespace Mono.Options
return new string[] { "@file" };
}
- public override string Description
- {
- get { return "Read response file for more options."; }
- }
+ public override string Description => "Read response file for more options.";
public override bool GetArguments(string value, out IEnumerable<string> replacement)
{

Prefer expression-bodied members for properties