IndexOutOfRangeException is supposed to only be thrown internally for arrays. Everything else should be throwing ArgumentOutOfRangeExceptions. Even the BCL collections do this.
I copied the Vector3 class out to another project, VS2012's code analysis pointed this out as CA1065.
Same fix as andykorth/opentk#26.
Clean up vector indexers and replace IndexOutOfRangeException with Ar…
…gumentOutOfRangeException as per CA1506
Thanks, this looks fine.
This is a breaking change so I'll merge it in the next major release.
Sounds good. I just realized that the matrix classes do the same thing, I'll update those and add them to the pull request by then.
Replace IndexOutOfRangeExceptions with ArgumentOutOfRangeExceptions i…
Added a second indexer to the matrix classes to get the rows.
This would be a breaking change with very little practical benefit. I hate doing this, but I will have to close this PR.