The AddRange argument is an empty array, so you are trying to push null elements onto the stack. Therefore, this is a very reasonable exception.
EDIT: But you're right, this is a bad exception message. You can guess that this is due to the fact that the PushRange internal overload (T [], Int32, Int32) actually throws an exception.
Pete montgomery
source share