Browse Source

Fix corrupted exception message resource string #239

pull/248/head
Christoph Ruegg 12 years ago
parent
commit
0e306932fd
  1. 27
      src/Numerics/Properties/Resources.Designer.cs
  2. 7
      src/Numerics/Properties/Resources.resx
  3. 2
      src/Numerics/Random/Palf.cs
  4. 2
      src/Numerics/Statistics/Histogram.cs

27
src/Numerics/Properties/Resources.Designer.cs

@ -150,15 +150,6 @@ namespace MathNet.Numerics.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to han the given upper bound..
/// </summary>
public static string ArgumentLowerBoundLargerThanUpperBound {
get {
return ResourceManager.GetString("ArgumentLowerBoundLargerThanUpperBound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Matrix dimensions must agree..
/// </summary>
@ -483,6 +474,24 @@ namespace MathNet.Numerics.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to The upper bound must be strictly larger than the lower bound..
/// </summary>
public static string ArgumentUpperBoundMustBeLargerThanLowerBound {
get {
return ResourceManager.GetString("ArgumentUpperBoundMustBeLargerThanLowerBound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The upper bound must be at least as large as the lower bound..
/// </summary>
public static string ArgumentUpperBoundMustBeLargerThanOrEqualToLowerBound {
get {
return ResourceManager.GetString("ArgumentUpperBoundMustBeLargerThanOrEqualToLowerBound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Array length must be a multiple of {0}..
/// </summary>

7
src/Numerics/Properties/Resources.resx

@ -276,8 +276,8 @@
<data name="ArgumentMinValueGreaterThanMaxValue" xml:space="preserve">
<value>In the specified range, the minimum is greater than maximum.</value>
</data>
<data name="ArgumentLowerBoundLargerThanUpperBound" xml:space="preserve">
<value>han the given upper bound.</value>
<data name="ArgumentUpperBoundMustBeLargerThanOrEqualToLowerBound" xml:space="preserve">
<value>The upper bound must be at least as large as the lower bound.</value>
</data>
<data name="PartialOrderException" xml:space="preserve">
<value>The two arguments can't be compared (maybe they are part of a partial ordering?)</value>
@ -403,4 +403,7 @@
<data name="MatrixMustBeSparse" xml:space="preserve">
<value>Matrix must be in sparse storage format</value>
</data>
<data name="ArgumentUpperBoundMustBeLargerThanLowerBound" xml:space="preserve">
<value>The upper bound must be strictly larger than the lower bound.</value>
</data>
</root>

2
src/Numerics/Random/Palf.cs

@ -120,7 +120,7 @@ namespace MathNet.Numerics.Random
if (longLag <= shortLag)
{
throw new ArgumentException(Resources.ArgumentLowerBoundLargerThanUpperBound, "longLag");
throw new ArgumentException(Resources.ArgumentUpperBoundMustBeLargerThanLowerBound, "longLag");
}
if (seed == 0)

2
src/Numerics/Statistics/Histogram.cs

@ -90,7 +90,7 @@ namespace MathNet.Numerics.Statistics
{
if (lowerBound > upperBound)
{
throw new ArgumentException(Resources.ArgumentLowerBoundLargerThanUpperBound);
throw new ArgumentException(Resources.ArgumentUpperBoundMustBeLargerThanOrEqualToLowerBound);
}
if (count < 0.0)

Loading…
Cancel
Save