CA2201: throw correct exception type.

This commit is contained in:
Huo Yaoyuan
2019-11-28 21:52:05 +08:00
parent ecfc6dfa3d
commit d7b3578cc6
4 changed files with 15 additions and 4 deletions

View File

@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Difficulty.Utils
get
{
if (i < 0 || i > Count - 1)
throw new IndexOutOfRangeException();
throw new ArgumentOutOfRangeException(nameof(i));
i += marker;
if (i > capacity - 1)