Skip to content

Commit

Permalink
Merge pull request #1846 from yahiheb/expression-body
Browse files Browse the repository at this point in the history
Prefer expression body for properties
  • Loading branch information
nopara73 committed Jul 14, 2019
2 parents 78dd616 + 9a04ce6 commit 3e9958d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 2 additions & 4 deletions WalletWasabi/Gma/QrCodeNet/Encoding/StateMatrix.cs
Expand Up @@ -18,10 +18,8 @@ public StateMatrix(int width)

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; }
Expand Down
2 changes: 1 addition & 1 deletion WalletWasabi/Models/ChaumianCoinJoin/MixingLevels.cs
Expand Up @@ -82,7 +82,7 @@ public IEnumerable<SchnorrPubKey> SchnorrPubKeys
}
return _schnorrPubKeys;
}
set { _schnorrPubKeys = value; }
set => _schnorrPubKeys = value;
}

public int GetMaxLevel() => Levels.Count - 1;
Expand Down
7 changes: 2 additions & 5 deletions WalletWasabi/Mono/OptionValueCollection.cs
Expand Up @@ -268,7 +268,7 @@ void IList.RemoveAt(int index)
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

Expand Down Expand Up @@ -317,10 +317,7 @@ private void AssertValid(int index)
AssertValid(index);
return index >= Values.Count ? null : Values[index];
}
set
{
Values[index] = value;
}
set => Values[index] = value;
}

#endregion IList<T>
Expand Down

0 comments on commit 3e9958d

Please sign in to comment.