mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 02:45:41 +00:00
LengthMustBePositiveValue -> LengthGreaterThanOrEqualTo0
This commit is contained in:
parent
88da1895f4
commit
00b751b555
6
X10D/src/ExceptionMessages.Designer.cs
generated
6
X10D/src/ExceptionMessages.Designer.cs
generated
@ -79,11 +79,11 @@ namespace X10D {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Length must be a positive value..
|
/// Looks up a localized string similar to Length must be greater than or equal to 0..
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string LengthMustBePositiveValue {
|
internal static string LengthGreaterThanOrEqualTo0 {
|
||||||
get {
|
get {
|
||||||
return ResourceManager.GetString("LengthMustBePositiveValue", resourceCulture);
|
return ResourceManager.GetString("LengthGreaterThanOrEqualTo0", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,8 +38,8 @@
|
|||||||
<data name="HashAlgorithmCreateReturnedNull" xml:space="preserve">
|
<data name="HashAlgorithmCreateReturnedNull" xml:space="preserve">
|
||||||
<value>HashAlgorithm's Create method returned null referenece.</value>
|
<value>HashAlgorithm's Create method returned null referenece.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="LengthMustBePositiveValue" xml:space="preserve">
|
<data name="LengthGreaterThanOrEqualTo0" xml:space="preserve">
|
||||||
<value>Length must be a positive value.</value>
|
<value>Length must be greater than or equal to 0.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="StreamDoesNotSupportReading" xml:space="preserve">
|
<data name="StreamDoesNotSupportReading" xml:space="preserve">
|
||||||
<value>The stream does not support reading.</value>
|
<value>The stream does not support reading.</value>
|
||||||
|
@ -333,7 +333,7 @@ namespace X10D.RandomExtensions
|
|||||||
|
|
||||||
if (length < 0)
|
if (length < 0)
|
||||||
{
|
{
|
||||||
throw new ArgumentOutOfRangeException(nameof(length), ExceptionMessages.LengthMustBePositiveValue);
|
throw new ArgumentOutOfRangeException(nameof(length), ExceptionMessages.LengthGreaterThanOrEqualTo0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (length == 0)
|
if (length == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user