Represents an exception that is thrown when an attempt is made to store an object of the wrong type within an array.
Object
Exception
SystemException
ArrayTypeMismatchException
[Visual Basic] Public Class ArrayTypeMismatchException Inherits SystemException [C#] public class ArrayTypeMismatchException : SystemException [C++] public __gc class ArrayTypeMismatchException : public SystemException [JScript] public class ArrayTypeMismatchException extends SystemException
The ArrayMismatchException is the exception class that is used when an exception is thrown when the arrays are of different primitive types.
Namespace: System
Assembly: mscorlib.dll