Skip to content

Instantly share code, notes, and snippets.

@sign42
Created March 19, 2016 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sign42/378d758b29461bc5d6f7 to your computer and use it in GitHub Desktop.
Save sign42/378d758b29461bc5d6f7 to your computer and use it in GitHub Desktop.
.assembly fakeAnon{}
.class public auto ansi sealed beforefieldinit 'f__AnonymousType0`1'<'<item>j__TPar'>
extends [mscorlib]System.Object
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
01 00 00 00
)
.custom instance void [mscorlib]System.Diagnostics.DebuggerDisplayAttribute::.ctor(string) = (
01 00 12 5c 7b 20 69 74 65 6d 20 3d 20 7b 69 74
65 6d 7d 20 7d 01 00 54 0e 04 54 79 70 65 10 3c
41 6e 6f 6e 79 6d 6f 75 73 20 54 79 70 65 3e
)
// Fields
.field private !'<item>j__TPar' '<item>i__Field'
.custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype
[mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
01 00 00 00 00 00 00 00
)
// Methods
.method public hidebysig specialname
instance !'<item>j__TPar' get_item () cil managed
{
// Method begins at RVA 0x2050
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldfld !0 class 'f__AnonymousType0`1'<!'<item>j__TPar'>::'<item>i__Field'
IL_0006: ret
} // end of method 'f__AnonymousType0`1'::get_item
.method public hidebysig specialname
instance void set_item (!'<item>j__TPar' item ) cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld !0 class 'f__AnonymousType0`1'<!'<item>j__TPar'>::'<item>i__Field'
IL_0007: ret
}// end of new set method
.method public hidebysig specialname rtspecialname
instance void .ctor (
!'<item>j__TPar' item
) cil managed
{
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = (
01 00 00 00
)
// Method begins at RVA 0x2058
// Code size 14 (0xe)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ldarg.0
IL_0007: ldarg.1
IL_0008: stfld !0 class 'f__AnonymousType0`1'<!'<item>j__TPar'>::'<item>i__Field'
IL_000d: ret
} // end of method 'f__AnonymousType0`1'::.ctor
.method public hidebysig specialname rtspecialname
instance void .ctor (
) cil managed
{
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = (
01 00 00 00
)
// Method begins at RVA 0x2058
// Code size 14 (0xe)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: nop
IL_0007: nop
IL_0008: ret
} // end of method 'f__AnonymousType0`1'::.ctor
.method public hidebysig virtual
instance bool Equals (
object 'value'
) cil managed
{
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = (
01 00 00 00
)
// Method begins at RVA 0x2068
// Code size 36 (0x24)
.maxstack 3
.locals init (
[0] class 'f__AnonymousType0`1'<!'<item>j__TPar'>
)
IL_0000: ldarg.1
IL_0001: isinst class 'f__AnonymousType0`1'<!'<item>j__TPar'>
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: brfalse.s IL_0022
IL_000a: call class [mscorlib]System.Collections.Generic.EqualityComparer`1<!0> class
[mscorlib]System.Collections.Generic.EqualityComparer`1<!'<item>j__TPar'>::get_Default()
IL_000f: ldarg.0
IL_0010: ldfld !0 class 'f__AnonymousType0`1'<!'<item>j__TPar'>::'<item>i__Field'
IL_0015: ldloc.0
IL_0016: ldfld !0 class 'f__AnonymousType0`1'<!'<item>j__TPar'>::'<item>i__Field'
IL_001b: callvirt instance bool class [mscorlib]System.Collections.Generic.EqualityComparer`1<!'<item>j__TPar'>::Equals
(!0, !0)
IL_0020: br.s IL_0023
IL_0022: ldc.i4.0
IL_0023: ret
} // end of method 'f__AnonymousType0`1'::Equals
.method public hidebysig virtual
instance int32 GetHashCode () cil managed
{
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = (
01 00 00 00
)
// Method begins at RVA 0x2098
// Code size 29 (0x1d)
.maxstack 8
IL_0000: ldc.i4 1437588414
IL_0005: ldc.i4 -1521134295
IL_000a: mul
IL_000b: call class [mscorlib]System.Collections.Generic.EqualityComparer`1<!0> class
[mscorlib]System.Collections.Generic.EqualityComparer`1<!'<item>j__TPar'>::get_Default()
IL_0010: ldarg.0
IL_0011: ldfld !0 class 'f__AnonymousType0`1'<!'<item>j__TPar'>::'<item>i__Field'
IL_0016: callvirt instance int32 class
[mscorlib]System.Collections.Generic.EqualityComparer`1<!'<item>j__TPar'>::GetHashCode(!0)
IL_001b: add
IL_001c: ret
} // end of method 'f__AnonymousType0`1'::GetHashCode
.method public hidebysig virtual
instance string ToString () cil managed
{
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = (
01 00 00 00
)
// Method begins at RVA 0x20b8
// Code size 77 (0x4d)
.maxstack 7
.locals init (
[0] !'<item>j__TPar',
[1] !'<item>j__TPar'
)
IL_0000: ldnull
IL_0001: ldstr "{{ item = {0} }}"
IL_0006: ldc.i4.1
IL_0007: newarr [mscorlib]System.Object
IL_000c: dup
IL_000d: ldc.i4.0
IL_000e: ldarg.0
IL_000f: ldfld !0 class 'f__AnonymousType0`1'<!'<item>j__TPar'>::'<item>i__Field'
IL_0014: stloc.0
IL_0015: ldloca.s 0
IL_0017: ldloca.s 1
IL_0019: initobj !'<item>j__TPar'
IL_001f: ldloc.1
IL_0020: box !'<item>j__TPar'
IL_0025: brtrue.s IL_003b
IL_0027: ldobj !'<item>j__TPar'
IL_002c: stloc.1
IL_002d: ldloca.s 1
IL_002f: ldloc.1
IL_0030: box !'<item>j__TPar'
IL_0035: brtrue.s IL_003b
IL_0037: pop
IL_0038: ldnull
IL_0039: br.s IL_0046
IL_003b: constrained. !'<item>j__TPar'
IL_0041: callvirt instance string [mscorlib]System.Object::ToString()
IL_0046: stelem.ref
IL_0047: call string [mscorlib]System.String::Format(class [mscorlib]System.IFormatProvider, string, object[])
IL_004c: ret
} // end of method 'f__AnonymousType0`1'::ToString
// Properties
.property instance !'<item>j__TPar' item()
{
.get instance !0 'f__AnonymousType0`1'::get_item()
.set instance void 'f__AnonymousType0`1'::set_item(!0)
}
} // end of class f__AnonymousType0`1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment