mirror of https://github.com/oliverbooth/X10D
Add CultureInfo argument to exception message format
This commit is contained in:
parent
1205290ab4
commit
b81cac03d6
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
|
@ -56,7 +57,7 @@ namespace X10D
|
|||
if (lower.GreaterThan(upper))
|
||||
{
|
||||
throw new ArgumentException(
|
||||
string.Format(ExceptionMessages.LowerCannotBeGreaterThanUpper, lower, upper),
|
||||
string.Format(CultureInfo.CurrentCulture, ExceptionMessages.LowerCannotBeGreaterThanUpper, lower, upper),
|
||||
nameof(lower));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue