NegativeArraySizeException
The name says it all: this exception occurs when you try to create an array with a negative dimension, e.g.:
double[] b = new double[m];
And m happens to be less than zero. This is the exception that is fired in *Java* but in C# there is no such exception and instead a much less obvious OverflowException is fired. Note to the BCL owners: could you emulate Java in this little detail?