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)
55throw 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\Array.cs (2)
478throw new ArrayTypeMismatchException(SR.ArrayTypeMismatch_ConstrainedCopy); 489throw new ArrayTypeMismatchException(SR.ArrayTypeMismatch_CantAssignType);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
77throw new ArrayTypeMismatchException();
src\System\Runtime\CompilerServices\CastHelpers.cs (1)
419throw new ArrayTypeMismatchException();
137 references to ArrayTypeMismatchException
GenerateDocumentationAndConfigFiles (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Metrics (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Metrics.Legacy (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (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\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Analyzers (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Collections.Package (4)
Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Extensions.Package (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (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))]
Roslyn.Diagnostics.Analyzers (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
System.Collections (13)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
72catch (ArrayTypeMismatchException)
System\Collections\Generic\LinkedList.cs (1)
494catch (ArrayTypeMismatchException)
System\Collections\Generic\OrderedDictionary.cs (3)
1323catch (ArrayTypeMismatchException) 1566catch (ArrayTypeMismatchException) 1875catch (ArrayTypeMismatchException)
System\Collections\Generic\PriorityQueue.cs (1)
982catch (ArrayTypeMismatchException)
System\Collections\Generic\SortedDictionary.cs (2)
580catch (ArrayTypeMismatchException) 741catch (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)
452catch (ArrayTypeMismatchException)
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (6)
36/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 48/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 53/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 65/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 97/// <exception cref="ArrayTypeMismatchException"><paramref name="array"/> is covariant and its type is not exactly T[].</exception> 109/// <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)
72catch (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)
3708/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 3734/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="segment"/> is covariant and array's type is not exactly T[].</exception> 3768/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="segment"/> is covariant and array's type is not exactly T[].</exception> 3807/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 3839/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 3877/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="segment"/> is covariant and array's type is not exactly T[].</exception> 3897/// <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)
39/// <exception cref="ArrayTypeMismatchException">Thrown when <paramref name="array"/> is covariant and array's type is not exactly T[].</exception> 63/// <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)
2480Assert.Throws<ArrayTypeMismatchException>(() => designer.PostFilterEvents(new Dictionary<object, object> { { "key", new object() } })); 2908Assert.Throws<ArrayTypeMismatchException>(() => filter.PostFilterEvents(new Dictionary<object, object> { { "key", new object() } }));
System.Windows.Forms.Tests (1)
System\Windows\Forms\TabControlTests.cs (1)
3927Assert.Throws<ArrayTypeMismatchException>(() => control.GetItems(typeof(SubTabPage)));
Test.Utilities (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)
Text.Analyzers (4)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
937catch (ArrayTypeMismatchException) 1419catch (ArrayTypeMismatchException) 1627catch (ArrayTypeMismatchException)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
466catch (ArrayTypeMismatchException)