August 2003
Intermediate to advanced
928 pages
32h 1m
English
ArrayTypeMismatchException
This exception is thrown when
you store an element in an array that
has a different type than the array’s declared type.
For example, trying to store a String object into
an array declared to hold Int32 instances causes
this exception to be thrown.
public class ArrayTypeMismatchException : SystemException { // Public Constructors public ArrayTypeMismatchException( ); public ArrayTypeMismatchException(stringmessage); public ArrayTypeMismatchException(stringmessage, ExceptioninnerException); // Protected Constructors protected ArrayTypeMismatchException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Object
→
Exception(System.Runtime.Serialization.ISerializable)
→
SystemException
→
ArrayTypeMismatchException