ArgumentNullException and ArgumentException
Does it strike anyone else as ironic that ArgumentException and ArgumentNullException have mismatched argument ordering? The parameter name is first for the null version, but second for the other one. Uggh… this makes it awkward to remember if you use both. ArgumentOutOfRangeException follows the example of ArgumentNullException.
I can see no obvious reason for the discrepancy. […]
Filed under: Code | No Comments »





