mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-23 01:18:46 +00:00
(#27) Move string literal ex msg to resource file
This commit is contained in:
parent
7d1dbee0dc
commit
0d00dd62e8
@ -47,4 +47,7 @@
|
|||||||
<data name="StreamDoesNotSupportWriting" xml:space="preserve">
|
<data name="StreamDoesNotSupportWriting" xml:space="preserve">
|
||||||
<value>The stream does not support writing.</value>
|
<value>The stream does not support writing.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="MaxValueGreaterThanEqualToMinValue" xml:space="preserve">
|
||||||
|
<value>maxValue must be greater than or equal to minValue</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
@ -81,7 +81,7 @@ namespace X10D.RandomExtensions
|
|||||||
|
|
||||||
if (maxValue < minValue)
|
if (maxValue < minValue)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("maximum must be greater than or equal to minimum.");
|
throw new ArgumentOutOfRangeException(ExceptionMessages.MaxValueGreaterThanEqualToMinValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
return random.NextDouble() * (maxValue - minValue) + minValue;
|
return random.NextDouble() * (maxValue - minValue) + minValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user