1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-14 04:35:41 +00:00

Pass parameter name as 1st arg to ArgOutOfRangeEx

This commit is contained in:
Oliver Booth 2021-03-09 17:14:34 +00:00
parent dcf9ed938b
commit 6860afd4f9

View File

@ -258,7 +258,7 @@ namespace X10D.RandomExtensions
if (maxValue < minValue) if (maxValue < minValue)
{ {
throw new ArgumentOutOfRangeException(ExceptionMessages.MaxValueGreaterThanEqualToMinValue); throw new ArgumentOutOfRangeException(nameof(maxValue), ExceptionMessages.MaxValueGreaterThanEqualToMinValue);
} }
var sample = random.NextInt64(); var sample = random.NextInt64();