Skip to content

Instantly share code, notes, and snippets.

@jonpryor
Created April 22, 2025 15:16
Show Gist options
  • Save jonpryor/280f78847fe60b808dd9e1957b2ebbda to your computer and use it in GitHub Desktop.
Save jonpryor/280f78847fe60b808dd9e1957b2ebbda to your computer and use it in GitHub Desktop.
// 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: {13146584-BE1E-4499-A4F0-AFB8D9934CED}
.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 )
.method private hidebysig static void '<Main>$'(string[] args) cil managed
{
.entrypoint
// Code size 70 (0x46)
.maxstack 5
.locals init ([System.Runtime]System.Exception V_0)
.try
{
ldc.i4.0
box [mscorlib]System.Int32
throw
// IL_0000: nop
// IL_0001: ldstr ""
// IL_0006: newobj instance void [System.Runtime]System.Exception::.ctor(string)
// IL_000b: throw
} // end .try
catch [System.Runtime]System.Object
{
IL_000c: stloc.0
IL_000d: nop
IL_000e: ldstr "Caught an object: "
IL_0013: ldloc.0
IL_0014: dup
IL_0015: brtrue.s IL_001b
IL_0017: pop
IL_0018: ldnull
IL_0019: br.s IL_0020
IL_001b: callvirt instance string [System.Runtime]System.Object::ToString()
IL_0020: ldstr " of type "
IL_0025: ldloc.0
IL_0026: callvirt instance [System.Runtime]System.Type [System.Runtime]System.Exception::GetType()
IL_002b: dup
IL_002c: brtrue.s IL_0032
IL_002e: pop
IL_002f: ldnull
IL_0030: br.s IL_0037
IL_0032: callvirt instance string [System.Runtime]System.Object::ToString()
IL_0037: call string [System.Runtime]System.String::Concat(string,
string,
string,
string)
IL_003c: call void [System.Console]System.Console::WriteLine(string)
IL_0041: nop
IL_0042: nop
IL_0043: leave.s IL_0045
} // end handler
IL_0045: 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