mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-23 00:38:47 +00:00
Pass parameter name as 1st arg to ArgOutOfRangeEx
This commit is contained in:
parent
dcf9ed938b
commit
6860afd4f9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user