CA2208: create exceptions correctly.

This commit is contained in:
Huo Yaoyuan
2019-11-28 22:21:21 +08:00
parent 09257b0c6d
commit d5994ed484
8 changed files with 8 additions and 9 deletions

View File

@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.Difficulty.Utils
public LimitedCapacityStack(int capacity)
{
if (capacity < 0)
throw new ArgumentOutOfRangeException();
throw new ArgumentOutOfRangeException(nameof(capacity));
this.capacity = capacity;
array = new T[capacity];