Change throw exceptions to use nameof in parameter
This commit is contained in:
@@ -51,7 +51,7 @@ namespace OpenRA.Support
|
||||
public int Next(int low, int high)
|
||||
{
|
||||
if (high < low)
|
||||
throw new ArgumentOutOfRangeException("high", "Maximum value is less than the minimum value.");
|
||||
throw new ArgumentOutOfRangeException(nameof(high), "Maximum value is less than the minimum value.");
|
||||
|
||||
var diff = high - low;
|
||||
if (diff <= 1)
|
||||
|
||||
Reference in New Issue
Block a user