Geeks With Blogs
Reidar Husmo SharePoint from the trenches
So I wrote a method. And decided to check the arguments.
And if something was wonky, I'd throw an exception.
Or two.
And I came across this curiosity in the MSDN documentation:
public ArgumentOutOfRangeException(
string paramName,
string message

public ArgumentException(
string message,
string paramName
Yup. The arguments to ArgumentException and ArgumentOutOfRangeException are the same. But in the other order. 
Isn't that exceptional?
Posted on Tuesday, March 6, 2012 10:25 AM | Back to top

Comments on this post: Exceptional arguments

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Norgean | Powered by: