ArrayTypeMismatchException (System.ArrayTypeMismatchException)

Inherits: System.SystemException

Interfaces: ISerializable, _Exception

Derived Types: 0

Assembly: mscorlib.dll

The exception that is thrown when an attempt is made to store an element of the wrong type within an array.

VB.NET C#

C#

public class ArrayTypeMismatchException : System.SystemException, System.Runtime.Serialization.ISerializable, System.Runtime.InteropServices._Exception
{
}

Articles

Your Visual Basic .NET or Visual Basic 2005 application may be ...

Therefore, the element is treated as a different class and a System.ArrayTypeMismatchException exception is thrown. Array covariance does not apply to an array of values.

ArrayTypeMismatchException

An unhandled exception of type 'System. ArrayTypeMismatchException ' occurred in PentaEngine.exe Additional information: Attempted to store an element

Brad Abrams : The SLAR on System.ArrayTypeMismatchException

Continuing in the series on sharing some of the information in the .NET Framework Standard Library Annotated Reference Vol 1 here are some of the annotations on the System ...

Hyperlinked ECMA C# Language Specification

System.ArrayTypeMismatchException: Thrown when a store into an array fails because the actual type of the stored element is incompatible with the actual type of the array.

Hyperlinked ECMA C# Language Specification

... 13.1.4 ) exists from the actual type of the instance referenced by y to the actual element type of the array instance containing x. 7 Otherwise, a System.ArrayTypeMismatchException is ...

Troubleshooting Exceptions: System.ArrayTypeMismatchException

An ArrayTypeMismatchException exception is thrown when the system cannot convert the element to the type declared for the array.

Troubleshooting Exceptions: System.ArrayTypeMismatchException

An T:System.ArrayTypeMismatchException exception is thrown when the system cannot convert the element to the type declared for the array.

Mono Documentation

See Also: ArrayTypeMismatchException Members. System.Object System.Exception System.SystemException System.ArrayTypeMismatchException

Mono Documentation

The members of System.ArrayTypeMismatchException are listed below. See Also: Inherited members from System.SystemException [ ...

System.ArrayTypeMismatchException Class

Base Types Object Exception SystemException ArrayTypeMismatchException. Assembly mscorlib Library BCL Summary Represents the error that occurs when an attempt is made to ...

Custom .NET Training ASP.NET Training Silverlight Training LINQ Training IT Support