Created
May 10, 2011 11:39
-
-
Save joshpeterson/964317 to your computer and use it in GitHub Desktop.
Dynamically typed C# code using Clay which creates an instance of a class with one property and uses it.
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using ClaySharp; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
dynamic New = new ClayFactory(); | |
var book = New.Book(); | |
book.Title = "Moo, baa, la la la"; | |
Console.WriteLine("Title: {0}", book.Title); | |
} | |
} | |
} |
This file contains 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
// Microsoft (R) .NET Framework IL Disassembler. Version 3.5.30729.1 | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// Metadata version: v4.0.30319 | |
.assembly extern mscorlib | |
{ | |
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. | |
.ver 4:0:0:0 | |
} | |
.assembly extern System.Core | |
{ | |
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. | |
.ver 4:0:0:0 | |
} | |
.assembly extern ClaySharp | |
{ | |
.ver 1:0:0:0 | |
} | |
.assembly extern Microsoft.CSharp | |
{ | |
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....: | |
.ver 4:0:0:0 | |
} | |
.assembly ConsoleApplication2 | |
{ | |
.custom instance void [mscorlib]System.Reflection.AssemblyTrademarkAttribute::.ctor(string) = ( 01 00 00 00 00 ) | |
.custom instance void [mscorlib]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 01 ) // ceptionThrows. | |
.custom instance void [mscorlib]System.Reflection.AssemblyDescriptionAttribute::.ctor(string) = ( 01 00 00 00 00 ) | |
.custom instance void [mscorlib]System.Reflection.AssemblyConfigurationAttribute::.ctor(string) = ( 01 00 00 00 00 ) | |
.custom instance void [mscorlib]System.Reflection.AssemblyCompanyAttribute::.ctor(string) = ( 01 00 00 00 00 ) | |
.custom instance void [mscorlib]System.Reflection.AssemblyProductAttribute::.ctor(string) = ( 01 00 13 43 6F 6E 73 6F 6C 65 41 70 70 6C 69 63 // ...ConsoleApplic | |
61 74 69 6F 6E 32 00 00 ) // ation2.. | |
.custom instance void [mscorlib]System.Reflection.AssemblyCopyrightAttribute::.ctor(string) = ( 01 00 12 43 6F 70 79 72 69 67 68 74 20 C2 A9 20 // ...Copyright .. | |
20 32 30 31 31 00 00 ) // 2011.. | |
.custom instance void [mscorlib]System.Reflection.AssemblyTitleAttribute::.ctor(string) = ( 01 00 13 43 6F 6E 73 6F 6C 65 41 70 70 6C 69 63 // ...ConsoleApplic | |
61 74 69 6F 6E 32 00 00 ) // ation2.. | |
.custom instance void [mscorlib]System.Runtime.InteropServices.ComVisibleAttribute::.ctor(bool) = ( 01 00 00 00 00 ) | |
.custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 63 65 37 39 30 62 31 35 2D 38 35 31 61 // ..$ce790b15-851a | |
2D 34 65 39 64 2D 62 65 65 35 2D 38 33 66 30 65 // -4e9d-bee5-83f0e | |
31 30 66 31 64 30 64 00 00 ) // 10f1d0d.. | |
.custom instance void [mscorlib]System.Reflection.AssemblyFileVersionAttribute::.ctor(string) = ( 01 00 07 31 2E 30 2E 30 2E 30 00 00 ) // ...1.0.0.0.. | |
.custom instance void [mscorlib]System.Runtime.Versioning.TargetFrameworkAttribute::.ctor(string) = ( 01 00 1A 2E 4E 45 54 46 72 61 6D 65 77 6F 72 6B // ....NETFramework | |
2C 56 65 72 73 69 6F 6E 3D 76 34 2E 30 01 00 54 // ,Version=v4.0..T | |
0E 14 46 72 61 6D 65 77 6F 72 6B 44 69 73 70 6C // ..FrameworkDispl | |
61 79 4E 61 6D 65 10 2E 4E 45 54 20 46 72 61 6D // ayName..NET Fram | |
65 77 6F 72 6B 20 34 ) // ework 4 | |
// --- The following custom attribute is added automatically, do not uncomment ------- | |
// .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 02 00 00 00 00 00 ) | |
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) | |
.hash algorithm 0x00008004 | |
.ver 1:0:0:0 | |
} | |
.module ConsoleApplication2.exe | |
// MVID: {8454F083-853B-4AD5-AA08-D9DD70FF60B9} | |
.imagebase 0x00400000 | |
.file alignment 0x00000200 | |
.stackreserve 0x00100000 | |
.subsystem 0x0003 // WINDOWS_CUI | |
.corflags 0x00000003 // ILONLY 32BITREQUIRED | |
// Image base: 0x01510000 | |
// =============== CLASS MEMBERS DECLARATION =================== | |
.class private auto ansi beforefieldinit ConsoleApplication2.Program | |
extends [mscorlib]System.Object | |
{ | |
.class abstract auto ansi sealed nested private beforefieldinit '<Main>o__SiteContainer0' | |
extends [mscorlib]System.Object | |
{ | |
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) | |
.field public static class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> '<>p__Site1' | |
.field public static class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`4<class [System.Core]System.Runtime.CompilerServices.CallSite,object,string,object>> '<>p__Site2' | |
.field public static class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Action`4<class [System.Core]System.Runtime.CompilerServices.CallSite,class [mscorlib]System.Type,string,object>> '<>p__Site3' | |
.field public static class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> '<>p__Site4' | |
} // end of class '<Main>o__SiteContainer0' | |
.method private hidebysig static void Main(string[] args) cil managed | |
{ | |
.entrypoint | |
// Code size 381 (0x17d) | |
.maxstack 11 | |
.locals init ([0] object New, | |
[1] object book, | |
[2] class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo[] CS$0$0000, | |
[3] class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo[] CS$0$0001, | |
[4] class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo[] CS$0$0002, | |
[5] class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo[] CS$0$0003) | |
IL_0000: newobj instance void [ClaySharp]ClaySharp.ClayFactory::.ctor() | |
IL_0005: stloc.0 | |
IL_0006: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site1' | |
IL_000b: brtrue.s IL_003f | |
IL_000d: ldc.i4.0 | |
IL_000e: ldstr "Book" | |
IL_0013: ldnull | |
IL_0014: ldtoken ConsoleApplication2.Program | |
IL_0019: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) | |
IL_001e: ldc.i4.1 | |
IL_001f: newarr [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo | |
IL_0024: stloc.2 | |
IL_0025: ldloc.2 | |
IL_0026: ldc.i4.0 | |
IL_0027: ldc.i4.0 | |
IL_0028: ldnull | |
IL_0029: call class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::Create(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, | |
string) | |
IL_002e: stelem.ref | |
IL_002f: ldloc.2 | |
IL_0030: call class [System.Core]System.Runtime.CompilerServices.CallSiteBinder [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.Binder::InvokeMember(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, | |
string, | |
class [mscorlib]System.Collections.Generic.IEnumerable`1<class [mscorlib]System.Type>, | |
class [mscorlib]System.Type, | |
class [mscorlib]System.Collections.Generic.IEnumerable`1<class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>) | |
IL_0035: call class [System.Core]System.Runtime.CompilerServices.CallSite`1<!0> class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>>::Create(class [System.Core]System.Runtime.CompilerServices.CallSiteBinder) | |
IL_003a: stsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site1' | |
IL_003f: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site1' | |
IL_0044: ldfld !0 class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>>::Target | |
IL_0049: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site1' | |
IL_004e: ldloc.0 | |
IL_004f: callvirt instance !2 class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>::Invoke(!0, | |
!1) | |
IL_0054: stloc.1 | |
IL_0055: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`4<class [System.Core]System.Runtime.CompilerServices.CallSite,object,string,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site2' | |
IL_005a: brtrue.s IL_0097 | |
IL_005c: ldc.i4.0 | |
IL_005d: ldstr "Title" | |
IL_0062: ldtoken ConsoleApplication2.Program | |
IL_0067: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) | |
IL_006c: ldc.i4.2 | |
IL_006d: newarr [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo | |
IL_0072: stloc.3 | |
IL_0073: ldloc.3 | |
IL_0074: ldc.i4.0 | |
IL_0075: ldc.i4.0 | |
IL_0076: ldnull | |
IL_0077: call class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::Create(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, | |
string) | |
IL_007c: stelem.ref | |
IL_007d: ldloc.3 | |
IL_007e: ldc.i4.1 | |
IL_007f: ldc.i4.3 | |
IL_0080: ldnull | |
IL_0081: call class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::Create(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, | |
string) | |
IL_0086: stelem.ref | |
IL_0087: ldloc.3 | |
IL_0088: call class [System.Core]System.Runtime.CompilerServices.CallSiteBinder [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.Binder::SetMember(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, | |
string, | |
class [mscorlib]System.Type, | |
class [mscorlib]System.Collections.Generic.IEnumerable`1<class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>) | |
IL_008d: call class [System.Core]System.Runtime.CompilerServices.CallSite`1<!0> class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`4<class [System.Core]System.Runtime.CompilerServices.CallSite,object,string,object>>::Create(class [System.Core]System.Runtime.CompilerServices.CallSiteBinder) | |
IL_0092: stsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`4<class [System.Core]System.Runtime.CompilerServices.CallSite,object,string,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site2' | |
IL_0097: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`4<class [System.Core]System.Runtime.CompilerServices.CallSite,object,string,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site2' | |
IL_009c: ldfld !0 class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`4<class [System.Core]System.Runtime.CompilerServices.CallSite,object,string,object>>::Target | |
IL_00a1: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`4<class [System.Core]System.Runtime.CompilerServices.CallSite,object,string,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site2' | |
IL_00a6: ldloc.1 | |
IL_00a7: ldstr "Moo, baa, la la la" | |
IL_00ac: callvirt instance !3 class [mscorlib]System.Func`4<class [System.Core]System.Runtime.CompilerServices.CallSite,object,string,object>::Invoke(!0, | |
!1, | |
!2) | |
IL_00b1: pop | |
IL_00b2: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Action`4<class [System.Core]System.Runtime.CompilerServices.CallSite,class [mscorlib]System.Type,string,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site3' | |
IL_00b7: brtrue.s IL_0109 | |
IL_00b9: ldc.i4 0x100 | |
IL_00be: ldstr "WriteLine" | |
IL_00c3: ldnull | |
IL_00c4: ldtoken ConsoleApplication2.Program | |
IL_00c9: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) | |
IL_00ce: ldc.i4.3 | |
IL_00cf: newarr [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo | |
IL_00d4: stloc.s CS$0$0002 | |
IL_00d6: ldloc.s CS$0$0002 | |
IL_00d8: ldc.i4.0 | |
IL_00d9: ldc.i4.s 33 | |
IL_00db: ldnull | |
IL_00dc: call class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::Create(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, | |
string) | |
IL_00e1: stelem.ref | |
IL_00e2: ldloc.s CS$0$0002 | |
IL_00e4: ldc.i4.1 | |
IL_00e5: ldc.i4.3 | |
IL_00e6: ldnull | |
IL_00e7: call class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::Create(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, | |
string) | |
IL_00ec: stelem.ref | |
IL_00ed: ldloc.s CS$0$0002 | |
IL_00ef: ldc.i4.2 | |
IL_00f0: ldc.i4.0 | |
IL_00f1: ldnull | |
IL_00f2: call class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::Create(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, | |
string) | |
IL_00f7: stelem.ref | |
IL_00f8: ldloc.s CS$0$0002 | |
IL_00fa: call class [System.Core]System.Runtime.CompilerServices.CallSiteBinder [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.Binder::InvokeMember(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, | |
string, | |
class [mscorlib]System.Collections.Generic.IEnumerable`1<class [mscorlib]System.Type>, | |
class [mscorlib]System.Type, | |
class [mscorlib]System.Collections.Generic.IEnumerable`1<class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>) | |
IL_00ff: call class [System.Core]System.Runtime.CompilerServices.CallSite`1<!0> class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Action`4<class [System.Core]System.Runtime.CompilerServices.CallSite,class [mscorlib]System.Type,string,object>>::Create(class [System.Core]System.Runtime.CompilerServices.CallSiteBinder) | |
IL_0104: stsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Action`4<class [System.Core]System.Runtime.CompilerServices.CallSite,class [mscorlib]System.Type,string,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site3' | |
IL_0109: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Action`4<class [System.Core]System.Runtime.CompilerServices.CallSite,class [mscorlib]System.Type,string,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site3' | |
IL_010e: ldfld !0 class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Action`4<class [System.Core]System.Runtime.CompilerServices.CallSite,class [mscorlib]System.Type,string,object>>::Target | |
IL_0113: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Action`4<class [System.Core]System.Runtime.CompilerServices.CallSite,class [mscorlib]System.Type,string,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site3' | |
IL_0118: ldtoken [mscorlib]System.Console | |
IL_011d: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) | |
IL_0122: ldstr "Title: {0}" | |
IL_0127: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site4' | |
IL_012c: brtrue.s IL_0162 | |
IL_012e: ldc.i4.0 | |
IL_012f: ldstr "Title" | |
IL_0134: ldtoken ConsoleApplication2.Program | |
IL_0139: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) | |
IL_013e: ldc.i4.1 | |
IL_013f: newarr [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo | |
IL_0144: stloc.s CS$0$0003 | |
IL_0146: ldloc.s CS$0$0003 | |
IL_0148: ldc.i4.0 | |
IL_0149: ldc.i4.0 | |
IL_014a: ldnull | |
IL_014b: call class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo::Create(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, | |
string) | |
IL_0150: stelem.ref | |
IL_0151: ldloc.s CS$0$0003 | |
IL_0153: call class [System.Core]System.Runtime.CompilerServices.CallSiteBinder [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.Binder::GetMember(valuetype [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, | |
string, | |
class [mscorlib]System.Type, | |
class [mscorlib]System.Collections.Generic.IEnumerable`1<class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>) | |
IL_0158: call class [System.Core]System.Runtime.CompilerServices.CallSite`1<!0> class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>>::Create(class [System.Core]System.Runtime.CompilerServices.CallSiteBinder) | |
IL_015d: stsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site4' | |
IL_0162: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site4' | |
IL_0167: ldfld !0 class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>>::Target | |
IL_016c: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1<class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>> ConsoleApplication2.Program/'<Main>o__SiteContainer0'::'<>p__Site4' | |
IL_0171: ldloc.1 | |
IL_0172: callvirt instance !2 class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite,object,object>::Invoke(!0, | |
!1) | |
IL_0177: callvirt instance void class [mscorlib]System.Action`4<class [System.Core]System.Runtime.CompilerServices.CallSite,class [mscorlib]System.Type,string,object>::Invoke(!0, | |
!1, | |
!2, | |
!3) | |
IL_017c: ret | |
} // end of method Program::Main | |
.method public hidebysig specialname rtspecialname | |
instance void .ctor() cil managed | |
{ | |
// Code size 7 (0x7) | |
.maxstack 8 | |
IL_0000: ldarg.0 | |
IL_0001: call instance void [mscorlib]System.Object::.ctor() | |
IL_0006: ret | |
} // end of method Program::.ctor | |
} // end of class ConsoleApplication2.Program | |
// ============================================================= | |
// *********** DISASSEMBLY COMPLETE *********************** | |
// WARNING: Created Win32 resource file C:\Users\Josh\Desktop\Clay.res |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment