135 references to BadImageFormatException
ILCompiler.Build.Tasks (3)
DumpNativeResources.cs (3)
149throw new BadImageFormatException(); 166throw new BadImageFormatException(); 172throw new BadImageFormatException();
ILCompiler.Compiler (1)
Compiler\DependencyAnalysis\ResourceDataNode.cs (1)
106throw new BadImageFormatException();
ILCompiler.MetadataTransform (5)
ILCompiler\Metadata\Transform.Constant.cs (1)
54throw new BadImageFormatException();
ILCompiler\Metadata\Transform.Type.cs (1)
521throw new BadImageFormatException();
ILCompiler\Metadata\Transform.TypeForwarders.cs (1)
93throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (2)
20throw new BadImageFormatException(); 259throw new BadImageFormatException();
ILCompiler.ReadyToRun (4)
Compiler\DependencyAnalysis\ReadyToRun\CopiedFieldRvaNode.cs (1)
115throw new BadImageFormatException();
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (3)
201throw new BadImageFormatException(); 223throw new BadImageFormatException(); 266throw new BadImageFormatException();
ILCompiler.RyuJit (1)
JitInterface\CorInfoImpl.RyuJit.cs (1)
1222throw new BadImageFormatException();
ILCompiler.TypeSystem (15)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (1)
185throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemContext.cs (1)
645throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\CustomAttributeTypeProvider.cs (1)
83throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaField.cs (1)
337throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaSignatureParser.cs (6)
231throw new BadImageFormatException(); 471throw new BadImageFormatException(); 502throw new BadImageFormatException(); 521throw new BadImageFormatException(); 557throw new BadImageFormatException(); 562throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaSignatureTranslator.cs (3)
67throw new BadImageFormatException(); 88throw new BadImageFormatException(); 102throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\PrimitiveTypeProvider.cs (1)
72throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\MethodDesc.Interop.cs (1)
150_ => throw new BadImageFormatException()
Microsoft.Build.Tasks.Core (1)
ManifestUtil\TrustInfo.cs (1)
719throw new BadImageFormatException();
Microsoft.CodeAnalysis (9)
MetadataReader\MetadataDecoder.cs (5)
557throw new BadImageFormatException(); 571throw new BadImageFormatException(); 581throw new BadImageFormatException(); 1749throw new BadImageFormatException(); 1755throw new BadImageFormatException();
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (4)
887throw new BadImageFormatException(); 917var name = ReadNullTerminatedString(ref blobReader) ?? throw new BadImageFormatException(); 918var value = ReadNullTerminatedString(ref blobReader) ?? throw new BadImageFormatException(); 923throw new BadImageFormatException();
Microsoft.CodeAnalysis.Features (4)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (4)
887throw new BadImageFormatException(); 917var name = ReadNullTerminatedString(ref blobReader) ?? throw new BadImageFormatException(); 918var value = ReadNullTerminatedString(ref blobReader) ?? throw new BadImageFormatException(); 923throw new BadImageFormatException();
Microsoft.Diagnostics.DataContractReader.Legacy (2)
MethodSignatureHelpers.cs (1)
24throw new BadImageFormatException();
SOSDacImpl.cs (1)
1155throw new BadImageFormatException();
Mono.Cecil (6)
Mono.Cecil.PE\ImageReader.cs (6)
48 throw new BadImageFormatException (); 58 throw new BadImageFormatException (); 65 throw new BadImageFormatException (); 198 throw new BadImageFormatException (); 302 throw new BadImageFormatException (); 318 throw new BadImageFormatException ();
rzc (1)
MetadataReaderExtensions.cs (1)
16throw new BadImageFormatException();
System.Private.CoreLib (40)
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\TypeLoader\ExternalReferencesTable.cs (1)
73throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (2)
20throw new BadImageFormatException(); 259throw new BadImageFormatException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
752return new System.BadImageFormatException(); 754return new System.BadImageFormatException();
System\Reflection\Runtime\CustomAttributes\NativeFormat\NativeFormatCustomAttributeData.cs (2)
91throw new BadImageFormatException(); 115throw new BadImageFormatException();
System\Reflection\Runtime\CustomAttributes\RuntimeCustomAttributeData.cs (1)
173throw new BadImageFormatException();
System\Reflection\Runtime\EventInfos\RuntimeEventInfo.cs (2)
40throw new BadImageFormatException(); // Added is a required method. 104throw new BadImageFormatException(); // Removed is a required method.
System\Reflection\Runtime\FieldInfos\RuntimeFieldInfo.cs (2)
169throw new BadImageFormatException(); // Field marked literal but has no default value. 207throw new BadImageFormatException(); // Field marked literal but has no default value.
System\Reflection\Runtime\General\Assignability.cs (1)
226throw new BadImageFormatException(); // Unexpected variance value in metadata.
System\Reflection\Runtime\General\MetadataReaderExtensions.NativeFormat.cs (16)
68throw new BadImageFormatException(); 158throw new BadImageFormatException(); 170throw new BadImageFormatException(); 179throw new BadImageFormatException(); 188throw new BadImageFormatException(); 197throw new BadImageFormatException(); 206throw new BadImageFormatException(); 215throw new BadImageFormatException(); 224throw new BadImageFormatException(); 233throw new BadImageFormatException(); 240throw new BadImageFormatException(); 283throw new BadImageFormatException(); 414throw new BadImageFormatException(); 454throw new BadImageFormatException(); 468throw new BadImageFormatException(); 559throw new BadImageFormatException();
System\Reflection\Runtime\General\NamespaceChain.cs (3)
42throw new BadImageFormatException(); 51throw new BadImageFormatException(); 67throw new BadImageFormatException(); // null namespace fragment found in middle.
System\Reflection\Runtime\General\QHandles.NativeFormat.cs (1)
64throw new BadImageFormatException();
System\Reflection\Runtime\General\QSignatureTypeHandle.cs (1)
49throw new BadImageFormatException(); // Expected TypeRef, Def or Spec with MetadataReader
System\Reflection\Runtime\General\QSignatureTypeHandle.NativeFormat.cs (1)
24throw new BadImageFormatException();
System\Reflection\Runtime\General\TypeResolver.cs (2)
34throw new BadImageFormatException(); // Expected TypeRef, Def or Spec with MetadataReader 51throw new BadImageFormatException(); // Expected TypeRef, Def or Spec with MetadataReader
System\Reflection\Runtime\General\TypeResolver.NativeFormat.cs (3)
45throw new BadImageFormatException(); // Expected TypeRef, Def or Spec. 70throw new BadImageFormatException(); // Bad rank. 232throw new BadImageFormatException(); // Expected TypeReference parent to be typeRef, typeDef or namespaceRef.
System.Private.Reflection.Execution (3)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.ManifestResources.cs (1)
84throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (2)
20throw new BadImageFormatException(); 259throw new BadImageFormatException();
System.Private.StackTraceMetadata (2)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (2)
20throw new BadImageFormatException(); 259throw new BadImageFormatException();
System.Private.TypeLoader (5)
Internal\Runtime\TypeLoader\TypeBuilder.cs (1)
334throw new BadImageFormatException();
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\TypeLoader\ExternalReferencesTable.cs (1)
73throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (2)
20throw new BadImageFormatException(); 259throw new BadImageFormatException();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemContext.cs (1)
645throw new BadImageFormatException();
System.Reflection.Metadata (17)
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (15)
46throw new BadImageFormatException(); 55throw new BadImageFormatException(); 61throw new BadImageFormatException(); 68throw new BadImageFormatException(); 82throw new BadImageFormatException(); 134throw new BadImageFormatException(); 204throw new BadImageFormatException(); 216throw new BadImageFormatException(); 223throw new BadImageFormatException(); 235throw new BadImageFormatException(); 278throw new BadImageFormatException(); 294throw new BadImageFormatException(); 374throw new BadImageFormatException(); 395throw new BadImageFormatException(); 508throw new BadImageFormatException();
System\Reflection\Metadata\TypeSystem\MemberReference.cs (1)
108_ => throw new BadImageFormatException(),
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (1)
67_ => throw new BadImageFormatException(),
System.Reflection.MetadataLoadContext (16)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (3)
52throw new BadImageFormatException(); 86throw new BadImageFormatException(); 89throw new BadImageFormatException();
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
167throw new BadImageFormatException();
System\Reflection\TypeLoading\General\Assignability.cs (1)
224throw new BadImageFormatException(); // Unexpected variance value in metadata.
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (3)
15throw new BadImageFormatException(); 23throw new BadImageFormatException(); 75throw new BadImageFormatException();
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (2)
24_ => throw new BadImageFormatException(), 144_ => throw new BadImageFormatException(), // Not a legal token type to be found in a GenericParameter.Parent record.
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
138_ => throw new BadImageFormatException(),
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (2)
74throw new BadImageFormatException(); 83throw new BadImageFormatException();
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (1)
41throw new BadImageFormatException();
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.TypeProvider.cs (1)
30throw new BadImageFormatException(); // TypeSpec tried to instantiate a non-definition type as a generic type.
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
135throw new BadImageFormatException(); // Property has neither a getter or setter.