.NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library
by Brad Abrams
Description
System.ArrayTypeMismatchException is thrown when the system cannot convert the element to the type declared for the array. [Note: This exception will not be thrown if the element can be converted to the type declared for the array. For example, an element of type System.Byte can be stored in an array declared to store System.Int32 values, but an element of type System.String cannot be stored in a System.Int32 array because conversion between these types is not supported.]
[Note: This exception is thrown by the System.Array.Copy method if a widening conversion cannot be performed on the operand to convert it to the array type. It is generally unnecessary for applications to throw this exception. The following IL instructions throw ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access