64 references to BadImageFormatException
Microsoft.Build.Tasks.Core (1)
ManifestUtil\TrustInfo.cs (1)
713throw new BadImageFormatException();
Microsoft.Build.Tasks.UnitTests (2)
GetSDKReference_Tests.cs (1)
1416throw new BadImageFormatException();
ResolveNonMSBuildProjectOutput_Tests.cs (1)
182throw new BadImageFormatException(); // the hint that the caller takes for an unmanaged binary.
Microsoft.CodeAnalysis (5)
MetadataReader\MetadataDecoder.cs (5)
557throw new BadImageFormatException(); 571throw new BadImageFormatException(); 581throw new BadImageFormatException(); 1749throw new BadImageFormatException(); 1755throw new BadImageFormatException();
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
PDB\MethodDebugInfo.Portable.cs (2)
119throw new BadImageFormatException(); 439throw new BadImageFormatException();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
MetadataDecoder.cs (2)
198throw new BadImageFormatException(); 245throw new BadImageFormatException();
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (1)
144throw new BadImageFormatException();
Microsoft.CodeAnalysis.Test.Utilities (6)
Metadata\DynamicAnalysisDataReader.cs (6)
80throw new BadImageFormatException(); 135throw new BadImageFormatException(); 167throw new BadImageFormatException(); 178throw new BadImageFormatException(); 186throw new BadImageFormatException(); 278throw new BadImageFormatException();
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
233throw new BadImageFormatException();
Roslyn.Test.PdbUtilities (1)
Reader\PdbTestUtilities.cs (1)
77throw new BadImageFormatException();
System.Private.CoreLib (9)
src\System\Reflection\MdImport.cs (3)
259throw new BadImageFormatException(); 561throw new BadImageFormatException(); 619throw new BadImageFormatException();
src\System\Reflection\RuntimeCustomAttributeData.cs (3)
871throw new BadImageFormatException(); 895string enumTypeMaybe = parser.GetString() ?? throw new BadImageFormatException(); 899throw new BadImageFormatException();
src\System\RuntimeHandles.cs (3)
678throw new BadImageFormatException(); 1153throw new BadImageFormatException(); 1512throw 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)
112_ => throw new BadImageFormatException(),
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (1)
71_ => 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)
136throw new BadImageFormatException(); // Property has neither a getter or setter.
System.Windows.Forms.Design.Tests (1)
System\Drawing\Design\ToolboxItemTests.cs (1)
1230throw new BadImageFormatException();