mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 23:25:43 +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)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(ExceptionMessages.MaxValueGreaterThanEqualToMinValue);
|
||||
throw new ArgumentOutOfRangeException(nameof(maxValue), ExceptionMessages.MaxValueGreaterThanEqualToMinValue);
|
||||
}
|
||||
|
||||
var sample = random.NextInt64();
|
||||
|
Loading…
Reference in New Issue
Block a user