Skip to content

Instantly share code, notes, and snippets.

/ExpressionBodyIL

Created Oct 2, 2017
Embed
What would you like to do?
.class public auto ansi beforefieldinit
DatabaseModules.Test
extends [mscorlib]System.Object
{
.field public class [mscorlib]System.Collections.Generic.IList`1<string> _cache
.method public hidebysig specialname rtspecialname instance void
.ctor() cil managed
{
.maxstack 8
// [9 9 - 9 58]
IL_0000: ldarg.0 // this
IL_0001: newobj instance void class [mscorlib]System.Collections.Generic.List`1<string>::.ctor()
IL_0006: stfld class [mscorlib]System.Collections.Generic.IList`1<string> DatabaseModules.Test::_cache
// [11 9 - 11 22]
IL_000b: ldarg.0 // this
IL_000c: call instance void [mscorlib]System.Object::.ctor()
IL_0011: nop
// [11 23 - 11 24]
IL_0012: nop
// [13 9 - 13 10]
IL_0013: ret
} // end of method Test::.ctor
.method public hidebysig specialname instance class [mscorlib]System.Collections.Generic.IList`1<string>
get_Get() cil managed
{
.maxstack 8
// [15 37 - 15 43]
IL_0000: ldarg.0 // this
IL_0001: ldfld class [mscorlib]System.Collections.Generic.IList`1<string> DatabaseModules.Test::_cache
IL_0006: ret
} // end of method Test::get_Get
.method public hidebysig specialname instance class [mscorlib]System.Collections.Generic.IList`1<string>
get_GetOld() cil managed
{
.maxstack 1
.locals init (
[0] class [mscorlib]System.Collections.Generic.IList`1<string> V_0
)
// [18 17 - 18 18]
IL_0000: nop
// [18 19 - 18 33]
IL_0001: ldarg.0 // this
IL_0002: ldfld class [mscorlib]System.Collections.Generic.IList`1<string> DatabaseModules.Test::_cache
IL_0007: stloc.0 // V_0
IL_0008: br.s IL_000a
// [18 34 - 18 35]
IL_000a: ldloc.0 // V_0
IL_000b: ret
} // end of method Test::get_GetOld
.property instance class [mscorlib]System.Collections.Generic.IList`1<string> Get()
{
.get instance class [mscorlib]System.Collections.Generic.IList`1<string> DatabaseModules.Test::get_Get()
} // end of property Test::Get
.property instance class [mscorlib]System.Collections.Generic.IList`1<string> GetOld()
{
.get instance class [mscorlib]System.Collections.Generic.IList`1<string> DatabaseModules.Test::get_GetOld()
} // end of property Test::GetOld
} // end of class DatabaseModules.Test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment