mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 23:58:48 +00:00
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
|
||||
{
|
||||
@ -52,11 +53,11 @@ namespace X10D
|
||||
{
|
||||
throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
|
||||
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
Block a user