Created
April 22, 2025 15:26
-
-
Save jonpryor/4a1bd818e10a9a5996eee9fa036a80dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Metadata version: v4.0.30319 | |
.assembly extern System.Runtime | |
{ | |
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....: | |
.ver 9:0:0:0 | |
} | |
.assembly extern System.Console | |
{ | |
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....: | |
.ver 9:0:0:0 | |
} | |
.assembly 'throw-int' | |
{ | |
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) | |
.custom instance void [System.Runtime]System.Diagnostics.DebuggableAttribute::.ctor([System.Runtime]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 07 01 00 00 00 00 ) | |
.custom instance void [System.Runtime]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx | |
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 00 ) // ceptionThrows. | |
.custom instance void [System.Runtime]System.Runtime.Versioning.TargetFrameworkAttribute::.ctor(string) = ( 01 00 18 2E 4E 45 54 43 6F 72 65 41 70 70 2C 56 // ....NETCoreApp,V | |
65 72 73 69 6F 6E 3D 76 39 2E 30 01 00 54 0E 14 // ersion=v9.0..T.. | |
46 72 61 6D 65 77 6F 72 6B 44 69 73 70 6C 61 79 // FrameworkDisplay | |
4E 61 6D 65 08 2E 4E 45 54 20 39 2E 30 ) // Name..NET 9.0 | |
.custom instance void [System.Runtime]System.Reflection.AssemblyCompanyAttribute::.ctor(string) = ( 01 00 09 74 68 72 6F 77 2D 69 6E 74 00 00 ) // ...throw-int.. | |
.custom instance void [System.Runtime]System.Reflection.AssemblyConfigurationAttribute::.ctor(string) = ( 01 00 05 44 65 62 75 67 00 00 ) // ...Debug.. | |
.custom instance void [System.Runtime]System.Reflection.AssemblyFileVersionAttribute::.ctor(string) = ( 01 00 07 31 2E 30 2E 30 2E 30 00 00 ) // ...1.0.0.0.. | |
.custom instance void [System.Runtime]System.Reflection.AssemblyInformationalVersionAttribute::.ctor(string) = ( 01 00 05 31 2E 30 2E 30 00 00 ) // ...1.0.0.. | |
.custom instance void [System.Runtime]System.Reflection.AssemblyProductAttribute::.ctor(string) = ( 01 00 09 74 68 72 6F 77 2D 69 6E 74 00 00 ) // ...throw-int.. | |
.custom instance void [System.Runtime]System.Reflection.AssemblyTitleAttribute::.ctor(string) = ( 01 00 09 74 68 72 6F 77 2D 69 6E 74 00 00 ) // ...throw-int.. | |
.hash algorithm 0x00008004 | |
.ver 1:0:0:0 | |
} | |
.module 'throw-int.dll' | |
// MVID: {747B1C4F-6AC1-41B2-A601-C92FA006A174} | |
.custom instance void [System.Runtime]System.Runtime.CompilerServices.RefSafetyRulesAttribute::.ctor(int32) = ( 01 00 0B 00 00 00 00 00 ) | |
.imagebase 0x00400000 | |
.file alignment 0x00000200 | |
.stackreserve 0x00100000 | |
.subsystem 0x0003 // WINDOWS_CUI | |
.corflags 0x00000001 // ILONLY | |
// =============== CLASS MEMBERS DECLARATION =================== | |
.class private auto ansi beforefieldinit Program | |
extends [System.Runtime]System.Object | |
{ | |
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) | |
.class auto ansi serializable sealed nested private beforefieldinit '<>c' | |
extends [System.Runtime]System.Object | |
{ | |
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) | |
.field public static initonly class Program/'<>c' '<>9' | |
.field public static [System.Runtime]System.UnhandledExceptionEventHandler '<>9__0_0' | |
.method private hidebysig specialname rtspecialname static | |
void .cctor() cil managed | |
{ | |
// Code size 11 (0xb) | |
.maxstack 8 | |
IL_0000: newobj instance void Program/'<>c'::.ctor() | |
IL_0005: stsfld class Program/'<>c' Program/'<>c'::'<>9' | |
IL_000a: ret | |
} // end of method '<>c'::.cctor | |
.method public hidebysig specialname rtspecialname | |
instance void .ctor() cil managed | |
{ | |
// Code size 8 (0x8) | |
.maxstack 8 | |
IL_0000: ldarg.0 | |
IL_0001: call instance void [System.Runtime]System.Object::.ctor() | |
IL_0006: nop | |
IL_0007: ret | |
} // end of method '<>c'::.ctor | |
.method assembly hidebysig instance void | |
'<<Main>$>b__0_0'(object sender, | |
[System.Runtime]System.UnhandledExceptionEventArgs e) cil managed | |
{ | |
.custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableContextAttribute::.ctor(uint8) = ( 01 00 01 00 00 ) | |
// Code size 64 (0x40) | |
.maxstack 5 | |
IL_0000: nop | |
IL_0001: ldstr "Unhandled exception: " | |
IL_0006: ldarg.2 | |
IL_0007: callvirt instance object [System.Runtime]System.UnhandledExceptionEventArgs::get_ExceptionObject() | |
IL_000c: dup | |
IL_000d: brtrue.s IL_0013 | |
IL_000f: pop | |
IL_0010: ldnull | |
IL_0011: br.s IL_0018 | |
IL_0013: callvirt instance string [System.Runtime]System.Object::ToString() | |
IL_0018: ldstr " of type " | |
IL_001d: ldarg.2 | |
IL_001e: callvirt instance object [System.Runtime]System.UnhandledExceptionEventArgs::get_ExceptionObject() | |
IL_0023: callvirt instance [System.Runtime]System.Type [System.Runtime]System.Object::GetType() | |
IL_0028: dup | |
IL_0029: brtrue.s IL_002f | |
IL_002b: pop | |
IL_002c: ldnull | |
IL_002d: br.s IL_0034 | |
IL_002f: callvirt instance string [System.Runtime]System.Object::ToString() | |
IL_0034: call string [System.Runtime]System.String::Concat(string, | |
string, | |
string, | |
string) | |
IL_0039: call void [System.Console]System.Console::WriteLine(string) | |
IL_003e: nop | |
IL_003f: ret | |
} // end of method '<>c'::'<<Main>$>b__0_0' | |
} // end of class '<>c' | |
.method private hidebysig static void '<Main>$'(string[] args) cil managed | |
{ | |
.entrypoint | |
// Code size 112 (0x70) | |
.maxstack 5 | |
.locals init ([System.Runtime]System.Exception V_0) | |
IL_0000: call [System.Runtime]System.AppDomain [System.Runtime]System.AppDomain::get_CurrentDomain() | |
IL_0005: ldsfld [System.Runtime]System.UnhandledExceptionEventHandler Program/'<>c'::'<>9__0_0' | |
IL_000a: dup | |
IL_000b: brtrue.s IL_0024 | |
IL_000d: pop | |
IL_000e: ldsfld class Program/'<>c' Program/'<>c'::'<>9' | |
IL_0013: ldftn instance void Program/'<>c'::'<<Main>$>b__0_0'(object, | |
[System.Runtime]System.UnhandledExceptionEventArgs) | |
IL_0019: newobj instance void [System.Runtime]System.UnhandledExceptionEventHandler::.ctor(object, | |
native int) | |
IL_001e: dup | |
IL_001f: stsfld [System.Runtime]System.UnhandledExceptionEventHandler Program/'<>c'::'<>9__0_0' | |
IL_0024: callvirt instance void [System.Runtime]System.AppDomain::add_UnhandledException([System.Runtime]System.UnhandledExceptionEventHandler) | |
IL_0029: nop | |
// .try | |
// { | |
ldc.i4.0 | |
box [System.Runtime]System.Int32 | |
throw | |
// IL_002a: nop | |
// IL_002b: ldstr "" | |
// IL_0030: newobj instance void [System.Runtime]System.Exception::.ctor(string) | |
// IL_0035: throw | |
// | |
// } // end .try | |
// catch [System.Runtime]System.Exception | |
// { | |
// IL_0036: stloc.0 | |
// IL_0037: nop | |
// IL_0038: ldstr "Caught an object: " | |
// IL_003d: ldloc.0 | |
// IL_003e: dup | |
// IL_003f: brtrue.s IL_0045 | |
// | |
// IL_0041: pop | |
// IL_0042: ldnull | |
// IL_0043: br.s IL_004a | |
// | |
// IL_0045: callvirt instance string [System.Runtime]System.Object::ToString() | |
// IL_004a: ldstr " of type " | |
// IL_004f: ldloc.0 | |
// IL_0050: callvirt instance [System.Runtime]System.Type [System.Runtime]System.Exception::GetType() | |
// IL_0055: dup | |
// IL_0056: brtrue.s IL_005c | |
// | |
// IL_0058: pop | |
// IL_0059: ldnull | |
// IL_005a: br.s IL_0061 | |
// | |
// IL_005c: callvirt instance string [System.Runtime]System.Object::ToString() | |
// IL_0061: call string [System.Runtime]System.String::Concat(string, | |
// string, | |
// string, | |
// string) | |
// IL_0066: call void [System.Console]System.Console::WriteLine(string) | |
// IL_006b: nop | |
// IL_006c: nop | |
// IL_006d: leave.s IL_006f | |
// | |
// } // end handler | |
IL_006f: ret | |
} // end of method Program::'<Main>$' | |
.method public hidebysig specialname rtspecialname | |
instance void .ctor() cil managed | |
{ | |
// Code size 8 (0x8) | |
.maxstack 8 | |
IL_0000: ldarg.0 | |
IL_0001: call instance void [System.Runtime]System.Object::.ctor() | |
IL_0006: nop | |
IL_0007: ret | |
} // end of method Program::.ctor | |
} // end of class Program | |
// ============================================================= | |
// *********** DISASSEMBLY COMPLETE *********************** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment