8 instantiations of ArrayTypeMismatchException
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.vb (1)
95Throw New Global.System.ArrayTypeMismatchException()
System.Numerics.Tensors (1)
System\ThrowHelper.cs (1)
34throw new ArrayTypeMismatchException();
System.Private.CoreLib (6)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
320ExceptionIDs.ArrayTypeMismatch => new ArrayTypeMismatchException(),
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
74throw new ArrayTypeMismatchException();
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
77throw new ArrayTypeMismatchException();
src\System\Array.CoreCLR.cs (2)
103throw new ArrayTypeMismatchException(SR.ArrayTypeMismatch_ConstrainedCopy); 131throw new ArrayTypeMismatchException(SR.ArrayTypeMismatch_CantAssignType);
src\System\Runtime\CompilerServices\CastHelpers.cs (1)
411throw new ArrayTypeMismatchException();
77 references to ArrayTypeMismatchException
Microsoft.Build.Framework (4)
SegmentedDictionary`2.cs (3)
907catch (ArrayTypeMismatchException) 1375catch (ArrayTypeMismatchException) 1575catch (ArrayTypeMismatchException)
SegmentedList`1.cs (1)
393catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
935catch (ArrayTypeMismatchException) 1417catch (ArrayTypeMismatchException) 1625catch (ArrayTypeMismatchException)
src\Dependencies\Collections\SegmentedList`1.cs (1)
464catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
935catch (ArrayTypeMismatchException) 1417catch (ArrayTypeMismatchException) 1625catch (ArrayTypeMismatchException)
src\Dependencies\Collections\SegmentedList`1.cs (1)
464catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Collections.Package (4)
SegmentedDictionary`2.cs (3)
935catch (ArrayTypeMismatchException) 1417catch (ArrayTypeMismatchException) 1625catch (ArrayTypeMismatchException)
SegmentedList`1.cs (1)
464catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
935catch (ArrayTypeMismatchException) 1417catch (ArrayTypeMismatchException) 1625catch (ArrayTypeMismatchException)
src\Dependencies\Collections\SegmentedList`1.cs (1)
464catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
935catch (ArrayTypeMismatchException) 1417catch (ArrayTypeMismatchException) 1625catch (ArrayTypeMismatchException)
src\Dependencies\Collections\SegmentedList`1.cs (1)
464catch (ArrayTypeMismatchException)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
1333TypeOf ex Is RankException Or TypeOf ex Is ArrayTypeMismatchException Or
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
54[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArrayTypeMismatchException))]
netstandard (1)
netstandard.cs (1)
47[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArrayTypeMismatchException))]
System.Collections (13)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
75catch (ArrayTypeMismatchException)
System\Collections\Generic\LinkedList.cs (1)
494catch (ArrayTypeMismatchException)
System\Collections\Generic\OrderedDictionary.cs (3)
1315catch (ArrayTypeMismatchException) 1558catch (ArrayTypeMismatchException) 1867catch (ArrayTypeMismatchException)
System\Collections\Generic\PriorityQueue.cs (1)
982catch (ArrayTypeMismatchException)
System\Collections\Generic\SortedDictionary.cs (2)
582catch (ArrayTypeMismatchException) 743catch (ArrayTypeMismatchException)
System\Collections\Generic\SortedList.cs (3)
498catch (ArrayTypeMismatchException) 1062catch (ArrayTypeMismatchException) 1176catch (ArrayTypeMismatchException)
System\Collections\Generic\SortedSet.cs (1)
582catch (ArrayTypeMismatchException)
System\Collections\Generic\Stack.cs (1)
149catch (ArrayTypeMismatchException)
System.Collections.Concurrent (2)
System\Collections\Concurrent\BlockingCollection.cs (1)
1588catch (ArrayTypeMismatchException)
System\Collections\Concurrent\ConcurrentBag.cs (1)
306catch (ArrayTypeMismatchException e)
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenDictionary.cs (1)
407catch (ArrayTypeMismatchException)
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
35/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 49/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 66/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception>
System\Numerics\Tensors\netcore\TensorSpan.cs (3)
35/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 50/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 68/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception>
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
1524catch (ArrayTypeMismatchException) 1999catch (ArrayTypeMismatchException) 2193catch (ArrayTypeMismatchException)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
399catch (ArrayTypeMismatchException)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
160catch (ArrayTypeMismatchException)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
234catch (ArrayTypeMismatchException)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
75catch (ArrayTypeMismatchException)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
165catch (ArrayTypeMismatchException)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
202catch (ArrayTypeMismatchException)
src\libraries\System.Private.CoreLib\src\System\Memory.cs (2)
35/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 80/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception>
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (7)
3707/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 3733/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="segment"/> is covariant and array's type is not exactly T[].</exception> 3767/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="segment"/> is covariant and array's type is not exactly T[].</exception> 3806/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 3838/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 3876/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="segment"/> is covariant and array's type is not exactly T[].</exception> 3896/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="segment"/> is covariant and array's type is not exactly T[].</exception>
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (2)
37/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 60/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (1)
596/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception>
src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
37/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 61/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
42[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArrayTypeMismatchException))]
System.Windows.Forms (1)
misc\CollectionHelper.cs (1)
61catch (ArrayTypeMismatchException)
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ComponentDesignerTests.cs (2)
2478Assert.Throws<ArrayTypeMismatchException>(() => designer.PostFilterEvents(new Dictionary<object, object> { { "key", new object() } })); 2906Assert.Throws<ArrayTypeMismatchException>(() => filter.PostFilterEvents(new Dictionary<object, object> { { "key", new object() } }));
System.Windows.Forms.Tests (1)
System\Windows\Forms\TabControlTests.cs (1)
3925Assert.Throws<ArrayTypeMismatchException>(() => control.GetItems(typeof(SubTabPage)));