﻿.class private abstract auto ansi sealed beforefieldinit Costura.AssemblyLoader
extends [mscorlib]System.Object
{
.class abstract auto ansi sealed nested private beforefieldinit '<>O'
extends [mscorlib]System.Object
{
.field public static class [mscorlib]System.ResolveEventHandler '<0>__ResolveAssembly'
}
.field private static object nullCacheLock
.field private static class [mscorlib]System.Collections.Generic.Dictionary`2<string,bool> nullCache
.field private static class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> assemblyNames
.field private static class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> symbolNames
.field private static int32 isAttached
.method private hidebysig static string
CultureToString(class [mscorlib]System.Globalization.CultureInfo culture) cil managed
{
.maxstack  8
IL_0000:  ldarg.0
IL_0001:  brtrue.s   IL_0009
IL_0003:  ldsfld     string [mscorlib]System.String::Empty
IL_0008:  ret
IL_0009:  ldarg.0
IL_000a:  callvirt   instance string [mscorlib]System.Globalization.CultureInfo::get_Name()
IL_000f:  ret
}
.method private hidebysig static class [mscorlib]System.Reflection.Assembly
ReadExistingAssembly(class [mscorlib]System.Reflection.AssemblyName name) cil managed
{
.maxstack  3
.locals init (class [mscorlib]System.AppDomain V_0,
class [mscorlib]System.Reflection.Assembly[] V_1,
class [mscorlib]System.Reflection.Assembly[] V_2,
int32 V_3,
class [mscorlib]System.Reflection.Assembly V_4,
class [mscorlib]System.Reflection.AssemblyName V_5)
IL_0000:  call       class [mscorlib]System.AppDomain [mscorlib]System.AppDomain::get_CurrentDomain()
IL_0005:  stloc.0
IL_0006:  ldloc.0
IL_0007:  callvirt   instance class [mscorlib]System.Reflection.Assembly[] [mscorlib]System.AppDomain::GetAssemblies()
IL_000c:  stloc.1
IL_000d:  ldloc.1
IL_000e:  stloc.2
IL_000f:  ldc.i4.0
IL_0010:  stloc.3
IL_0011:  br.s       IL_005c
IL_0013:  ldloc.2
IL_0014:  ldloc.3
IL_0015:  ldelem.ref
IL_0016:  stloc.s    V_4
IL_0018:  ldloc.s    V_4
IL_001a:  callvirt   instance class [mscorlib]System.Reflection.AssemblyName [mscorlib]System.Reflection.Assembly::GetName()
IL_001f:  stloc.s    V_5
IL_0021:  ldloc.s    V_5
IL_0023:  callvirt   instance string [mscorlib]System.Reflection.AssemblyName::get_Name()
IL_0028:  ldarg.0
IL_0029:  callvirt   instance string [mscorlib]System.Reflection.AssemblyName::get_Name()
IL_002e:  ldc.i4.3
IL_002f:  call       bool [mscorlib]System.String::Equals(string,
string,
valuetype [mscorlib]System.StringComparison)
IL_0034:  brfalse.s  IL_0058
IL_0036:  ldloc.s    V_5
IL_0038:  callvirt   instance class [mscorlib]System.Globalization.CultureInfo [mscorlib]System.Reflection.AssemblyName::get_CultureInfo()
IL_003d:  call       string Costura.AssemblyLoader::CultureToString(class [mscorlib]System.Globalization.CultureInfo)
IL_0042:  ldarg.0
IL_0043:  callvirt   instance class [mscorlib]System.Globalization.CultureInfo [mscorlib]System.Reflection.AssemblyName::get_CultureInfo()
IL_0048:  call       string Costura.AssemblyLoader::CultureToString(class [mscorlib]System.Globalization.CultureInfo)
IL_004d:  ldc.i4.3
IL_004e:  call       bool [mscorlib]System.String::Equals(string,
string,
valuetype [mscorlib]System.StringComparison)
IL_0053:  brfalse.s  IL_0058
IL_0055:  ldloc.s    V_4
IL_0057:  ret
IL_0058:  ldloc.3
IL_0059:  ldc.i4.1
IL_005a:  add
IL_005b:  stloc.3
IL_005c:  ldloc.3
IL_005d:  ldloc.2
IL_005e:  ldlen
IL_005f:  conv.i4
IL_0060:  blt.s      IL_0013
IL_0062:  ldnull
IL_0063:  ret
}
.method private hidebysig static string
GetAssemblyResourceName(class [mscorlib]System.Reflection.AssemblyName requestedAssemblyName) cil managed
{
.maxstack  3
.locals init (string V_0)
IL_0000:  ldarg.0
IL_0001:  callvirt   instance string [mscorlib]System.Reflection.AssemblyName::get_Name()
IL_0006:  callvirt   instance string [mscorlib]System.String::ToLowerInvariant()
IL_000b:  stloc.0
IL_000c:  ldarg.0
IL_000d:  callvirt   instance class [mscorlib]System.Globalization.CultureInfo [mscorlib]System.Reflection.AssemblyName::get_CultureInfo()
IL_0012:  brfalse.s  IL_0042
IL_0014:  ldarg.0
IL_0015:  callvirt   instance class [mscorlib]System.Globalization.CultureInfo [mscorlib]System.Reflection.AssemblyName::get_CultureInfo()
IL_001a:  callvirt   instance string [mscorlib]System.Globalization.CultureInfo::get_Name()
IL_001f:  call       bool [mscorlib]System.String::IsNullOrEmpty(string)
IL_0024:  brtrue.s   IL_0042
IL_0026:  ldarg.0
IL_0027:  callvirt   instance class [mscorlib]System.Globalization.CultureInfo [mscorlib]System.Reflection.AssemblyName::get_CultureInfo()
IL_002c:  call       string Costura.AssemblyLoader::CultureToString(class [mscorlib]System.Globalization.CultureInfo)
IL_0031:  ldstr      "."
IL_0036:  ldloc.0
IL_0037:  call       string [mscorlib]System.String::Concat(string,
string,
string)
IL_003c:  callvirt   instance string [mscorlib]System.String::ToLowerInvariant()
IL_0041:  stloc.0
IL_0042:  ldloc.0
IL_0043:  ret
}
.method private hidebysig static void  CopyTo(class [mscorlib]System.IO.Stream source,
class [mscorlib]System.IO.Stream destination) cil managed
{
.maxstack  4
.locals init (uint8[] V_0,
int32 V_1)
IL_0000:  ldc.i4     0x14000
IL_0005:  newarr     [mscorlib]System.Byte
IL_000a:  stloc.0
IL_000b:  br.s       IL_0016
IL_000d:  ldarg.1
IL_000e:  ldloc.0
IL_000f:  ldc.i4.0
IL_0010:  ldloc.1
IL_0011:  callvirt   instance void [mscorlib]System.IO.Stream::Write(uint8[],
int32,
int32)
IL_0016:  ldarg.0
IL_0017:  ldloc.0
IL_0018:  ldc.i4.0
IL_0019:  ldloc.0
IL_001a:  ldlen
IL_001b:  conv.i4
IL_001c:  callvirt   instance int32 [mscorlib]System.IO.Stream::Read(uint8[],
int32,
int32)
IL_0021:  dup
IL_0022:  stloc.1
IL_0023:  brtrue.s   IL_000d
IL_0025:  ret
}
.method private hidebysig static class [mscorlib]System.IO.Stream
LoadStream(string fullName) cil managed
{
.maxstack  2
.locals init (class [mscorlib]System.Reflection.Assembly V_0,
class [mscorlib]System.IO.Stream V_1,
class [System]System.IO.Compression.DeflateStream V_2,
class [mscorlib]System.IO.MemoryStream V_3,
class [mscorlib]System.IO.Stream V_4)
IL_0000:  call       class [mscorlib]System.Reflection.Assembly [mscorlib]System.Reflection.Assembly::GetExecutingAssembly()
IL_0005:  stloc.0
IL_0006:  ldarg.0
IL_0007:  ldstr      ".compressed"
IL_000c:  callvirt   instance bool [mscorlib]System.String::EndsWith(string)
IL_0011:  brfalse.s  IL_0051
IL_0013:  ldloc.0
IL_0014:  ldarg.0
IL_0015:  callvirt   instance class [mscorlib]System.IO.Stream [mscorlib]System.Reflection.Assembly::GetManifestResourceStream(string)
IL_001a:  stloc.1
.try
{
IL_001b:  ldloc.1
IL_001c:  ldc.i4.0
IL_001d:  newobj     instance void [System]System.IO.Compression.DeflateStream::.ctor(class [mscorlib]System.IO.Stream,
valuetype [System]System.IO.Compression.CompressionMode)
IL_0022:  stloc.2
.try
{
IL_0023:  newobj     instance void [mscorlib]System.IO.MemoryStream::.ctor()
IL_0028:  stloc.3
IL_0029:  ldloc.2
IL_002a:  ldloc.3
IL_002b:  call       void Costura.AssemblyLoader::CopyTo(class [mscorlib]System.IO.Stream,
class [mscorlib]System.IO.Stream)
IL_0030:  ldloc.3
IL_0031:  ldc.i4.0
IL_0032:  conv.i8
IL_0033:  callvirt   instance void [mscorlib]System.IO.Stream::set_Position(int64)
IL_0038:  ldloc.3
IL_0039:  stloc.s    V_4
IL_003b:  leave.s    IL_0059
}  // end .try
finally
{
IL_003d:  ldloc.2
IL_003e:  brfalse.s  IL_0046
IL_0040:  ldloc.2
IL_0041:  callvirt   instance void [mscorlib]System.IDisposable::Dispose()
IL_0046:  endfinally
}  // end handler
}  // end .try
finally
{
IL_0047:  ldloc.1
IL_0048:  brfalse.s  IL_0050
IL_004a:  ldloc.1
IL_004b:  callvirt   instance void [mscorlib]System.IDisposable::Dispose()
IL_0050:  endfinally
}  // end handler
IL_0051:  ldloc.0
IL_0052:  ldarg.0
IL_0053:  callvirt   instance class [mscorlib]System.IO.Stream [mscorlib]System.Reflection.Assembly::GetManifestResourceStream(string)
IL_0058:  ret
IL_0059:  ldloc.s    V_4
IL_005b:  ret
}
.method private hidebysig static class [mscorlib]System.IO.Stream
LoadStream(class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> resourceNames,
string name) cil managed
{
.maxstack  3
.locals init (string V_0)
IL_0000:  ldarg.0
IL_0001:  ldarg.1
IL_0002:  ldloca.s   V_0
IL_0004:  callvirt   instance bool class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::TryGetValue(!0,
!1&)
IL_0009:  brfalse.s  IL_0012
IL_000b:  ldloc.0
IL_000c:  call       class [mscorlib]System.IO.Stream Costura.AssemblyLoader::LoadStream(string)
IL_0011:  ret
IL_0012:  ldnull
IL_0013:  ret
}
.method private hidebysig static uint8[]
ReadStream(class [mscorlib]System.IO.Stream 'stream') cil managed
{
.maxstack  2
.locals init (class [mscorlib]System.IO.MemoryStream V_0,
uint8[] V_1)
IL_0000:  newobj     instance void [mscorlib]System.IO.MemoryStream::.ctor()
IL_0005:  stloc.0
.try
{
IL_0006:  ldarg.0
IL_0007:  ldloc.0
IL_0008:  callvirt   instance void [mscorlib]System.IO.Stream::CopyTo(class [mscorlib]System.IO.Stream)
IL_000d:  ldloc.0
IL_000e:  callvirt   instance uint8[] [mscorlib]System.IO.MemoryStream::ToArray()
IL_0013:  stloc.1
IL_0014:  leave.s    IL_0020
}  // end .try
finally
{
IL_0016:  ldloc.0
IL_0017:  brfalse.s  IL_001f
IL_0019:  ldloc.0
IL_001a:  callvirt   instance void [mscorlib]System.IDisposable::Dispose()
IL_001f:  endfinally
}  // end handler
IL_0020:  ldloc.1
IL_0021:  ret
}
.method private hidebysig static class [mscorlib]System.Reflection.Assembly
ReadFromEmbeddedResources(class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> assemblyNames,
class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> symbolNames,
class [mscorlib]System.Reflection.AssemblyName requestedAssemblyName) cil managed
{
.maxstack  2
.locals init (string V_0,
uint8[] V_1,
class [mscorlib]System.IO.Stream V_2,
class [mscorlib]System.Reflection.Assembly V_3,
class [mscorlib]System.IO.Stream V_4,
uint8[] V_5)
IL_0000:  ldarg.2
IL_0001:  call       string Costura.AssemblyLoader::GetAssemblyResourceName(class [mscorlib]System.Reflection.AssemblyName)
IL_0006:  stloc.0
IL_0007:  ldarg.0
IL_0008:  ldloc.0
IL_0009:  call       class [mscorlib]System.IO.Stream Costura.AssemblyLoader::LoadStream(class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>,
string)
IL_000e:  stloc.2
.try
{
IL_000f:  ldloc.2
IL_0010:  brtrue.s   IL_0016
IL_0012:  ldnull
IL_0013:  stloc.3
IL_0014:  leave.s    IL_005f
IL_0016:  ldloc.2
IL_0017:  call       uint8[] Costura.AssemblyLoader::ReadStream(class [mscorlib]System.IO.Stream)
IL_001c:  stloc.1
IL_001d:  leave.s    IL_0029
}  // end .try
finally
{
IL_001f:  ldloc.2
IL_0020:  brfalse.s  IL_0028
IL_0022:  ldloc.2
IL_0023:  callvirt   instance void [mscorlib]System.IDisposable::Dispose()
IL_0028:  endfinally
}  // end handler
IL_0029:  ldarg.1
IL_002a:  ldloc.0
IL_002b:  call       class [mscorlib]System.IO.Stream Costura.AssemblyLoader::LoadStream(class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>,
string)
IL_0030:  stloc.s    V_4
.try
{
IL_0032:  ldloc.s    V_4
IL_0034:  brfalse.s  IL_004a
IL_0036:  ldloc.s    V_4
IL_0038:  call       uint8[] Costura.AssemblyLoader::ReadStream(class [mscorlib]System.IO.Stream)
IL_003d:  stloc.s    V_5
IL_003f:  ldloc.1
IL_0040:  ldloc.s    V_5
IL_0042:  call       class [mscorlib]System.Reflection.Assembly [mscorlib]System.Reflection.Assembly::Load(uint8[],
uint8[])
IL_0047:  stloc.3
IL_0048:  leave.s    IL_005f
IL_004a:  leave.s    IL_0058
}  // end .try
finally
{
IL_004c:  ldloc.s    V_4
IL_004e:  brfalse.s  IL_0057
IL_0050:  ldloc.s    V_4
IL_0052:  callvirt   instance void [mscorlib]System.IDisposable::Dispose()
IL_0057:  endfinally
}  // end handler
IL_0058:  ldloc.1
IL_0059:  call       class [mscorlib]System.Reflection.Assembly [mscorlib]System.Reflection.Assembly::Load(uint8[])
IL_005e:  ret
IL_005f:  ldloc.3
IL_0060:  ret
}
.method public hidebysig static class [mscorlib]System.Reflection.Assembly
ResolveAssembly(object sender,
class [mscorlib]System.ResolveEventArgs e) cil managed
{
.maxstack  3
.locals init (string V_0,
class [mscorlib]System.Reflection.AssemblyName V_1,
class [mscorlib]System.Reflection.Assembly V_2,
object V_3,
bool V_4,
class [mscorlib]System.Reflection.Assembly V_5,
object V_6,
bool V_7)
IL_0000:  ldarg.1
IL_0001:  callvirt   instance string [mscorlib]System.ResolveEventArgs::get_Name()
IL_0006:  stloc.0
IL_0007:  ldloc.0
IL_0008:  newobj     instance void [mscorlib]System.Reflection.AssemblyName::.ctor(string)
IL_000d:  stloc.1
IL_000e:  ldsfld     object Costura.AssemblyLoader::nullCacheLock
IL_0013:  stloc.3
IL_0014:  ldc.i4.0
IL_0015:  stloc.s    V_4
.try
{
IL_0017:  ldloc.3
IL_0018:  ldloca.s   V_4
IL_001a:  call       void [mscorlib]System.Threading.Monitor::Enter(object,
bool&)
IL_001f:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,bool> Costura.AssemblyLoader::nullCache
IL_0024:  ldloc.0
IL_0025:  callvirt   instance bool class [mscorlib]System.Collections.Generic.Dictionary`2<string,bool>::ContainsKey(!0)
IL_002a:  brfalse.s  IL_0031
IL_002c:  ldnull
IL_002d:  stloc.s    V_5
IL_002f:  leave.s    IL_00a2
IL_0031:  leave.s    IL_003e
}  // end .try
finally
{
IL_0033:  ldloc.s    V_4
IL_0035:  brfalse.s  IL_003d
IL_0037:  ldloc.3
IL_0038:  call       void [mscorlib]System.Threading.Monitor::Exit(object)
IL_003d:  endfinally
}  // end handler
IL_003e:  ldloc.1
IL_003f:  call       class [mscorlib]System.Reflection.Assembly Costura.AssemblyLoader::ReadExistingAssembly(class [mscorlib]System.Reflection.AssemblyName)
IL_0044:  stloc.2
IL_0045:  ldloc.2
IL_0046:  brfalse.s  IL_004a
IL_0048:  ldloc.2
IL_0049:  ret
IL_004a:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::assemblyNames
IL_004f:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::symbolNames
IL_0054:  ldloc.1
IL_0055:  call       class [mscorlib]System.Reflection.Assembly Costura.AssemblyLoader::ReadFromEmbeddedResources(class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>,
class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>,
class [mscorlib]System.Reflection.AssemblyName)
IL_005a:  stloc.2
IL_005b:  ldloc.2
IL_005c:  brtrue.s   IL_00a0
IL_005e:  ldsfld     object Costura.AssemblyLoader::nullCacheLock
IL_0063:  stloc.s    V_6
IL_0065:  ldc.i4.0
IL_0066:  stloc.s    V_7
.try
{
IL_0068:  ldloc.s    V_6
IL_006a:  ldloca.s   V_7
IL_006c:  call       void [mscorlib]System.Threading.Monitor::Enter(object,
bool&)
IL_0071:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,bool> Costura.AssemblyLoader::nullCache
IL_0076:  ldloc.0
IL_0077:  ldc.i4.1
IL_0078:  callvirt   instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,bool>::set_Item(!0,
!1)
IL_007d:  leave.s    IL_008b
}  // end .try
finally
{
IL_007f:  ldloc.s    V_7
IL_0081:  brfalse.s  IL_008a
IL_0083:  ldloc.s    V_6
IL_0085:  call       void [mscorlib]System.Threading.Monitor::Exit(object)
IL_008a:  endfinally
}  // end handler
IL_008b:  ldloc.1
IL_008c:  callvirt   instance valuetype [mscorlib]System.Reflection.AssemblyNameFlags [mscorlib]System.Reflection.AssemblyName::get_Flags()
IL_0091:  ldc.i4     0x100
IL_0096:  and
IL_0097:  brfalse.s  IL_00a0
IL_0099:  ldloc.1
IL_009a:  call       class [mscorlib]System.Reflection.Assembly [mscorlib]System.Reflection.Assembly::Load(class [mscorlib]System.Reflection.AssemblyName)
IL_009f:  stloc.2
IL_00a0:  ldloc.2
IL_00a1:  ret
IL_00a2:  ldloc.s    V_5
IL_00a4:  ret
}
.method private hidebysig specialname rtspecialname static
void  .cctor() cil managed
{
.maxstack  3
IL_0000:  newobj     instance void [mscorlib]System.Object::.ctor()
IL_0005:  stsfld     object Costura.AssemblyLoader::nullCacheLock
IL_000a:  newobj     instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,bool>::.ctor()
IL_000f:  stsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,bool> Costura.AssemblyLoader::nullCache
IL_0014:  newobj     instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::.ctor()
IL_0019:  stsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::assemblyNames
IL_001e:  newobj     instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::.ctor()
IL_0023:  stsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::symbolNames
IL_0028:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::assemblyNames
IL_002d:  ldstr      "assemblytoreference"
IL_0032:  ldstr      "costura.assemblytoreference.dll.compressed"
IL_0037:  callvirt   instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_003c:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::symbolNames
IL_0041:  ldstr      "assemblytoreference"
IL_0046:  ldstr      "costura.assemblytoreference.pdb.compressed"
IL_004b:  callvirt   instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_0050:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::assemblyNames
IL_0055:  ldstr      "assemblytoreferencepreembedded"
IL_005a:  ldstr      "costura.assemblytoreferencepreembedded.dll"
IL_005f:  callvirt   instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_0064:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::symbolNames
IL_0069:  ldstr      "assemblytoreferencepreembedded"
IL_006e:  ldstr      "costura.assemblytoreferencepreembedded.pdb.compres"
+ "sed"
IL_0073:  callvirt   instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_0078:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::assemblyNames
IL_007d:  ldstr      "exetoreference"
IL_0082:  ldstr      "costura.exetoreference.exe.compressed"
IL_0087:  callvirt   instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_008c:  ldsfld     class [mscorlib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::symbolNames
IL_0091:  ldstr      "exetoreference"
IL_0096:  ldstr      "costura.exetoreference.pdb.compressed"
IL_009b:  callvirt   instance void class [mscorlib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_00a0:  ret
}
.method public hidebysig static void  Attach(bool subscribe) cil managed
{
.maxstack  3
.locals init (class [mscorlib]System.AppDomain V_0)
IL_0000:  ldsflda    int32 Costura.AssemblyLoader::isAttached
IL_0005:  ldc.i4.1
IL_0006:  call       int32 [mscorlib]System.Threading.Interlocked::Exchange(int32&,
int32)
IL_000b:  ldc.i4.1
IL_000c:  bne.un.s   IL_000f
IL_000e:  ret
IL_000f:  ldarg.0
IL_0010:  brfalse.s  IL_0039
IL_0012:  call       class [mscorlib]System.AppDomain [mscorlib]System.AppDomain::get_CurrentDomain()
IL_0017:  stloc.0
IL_0018:  ldloc.0
IL_0019:  ldsfld     class [mscorlib]System.ResolveEventHandler Costura.AssemblyLoader/'<>O'::'<0>__ResolveAssembly'
IL_001e:  dup
IL_001f:  brtrue.s   IL_0034
IL_0021:  pop
IL_0022:  ldnull
IL_0023:  ldftn      class [mscorlib]System.Reflection.Assembly Costura.AssemblyLoader::ResolveAssembly(object,
class [mscorlib]System.ResolveEventArgs)
IL_0029:  newobj     instance void [mscorlib]System.ResolveEventHandler::.ctor(object,
native int)
IL_002e:  dup
IL_002f:  stsfld     class [mscorlib]System.ResolveEventHandler Costura.AssemblyLoader/'<>O'::'<0>__ResolveAssembly'
IL_0034:  callvirt   instance void [mscorlib]System.AppDomain::add_AssemblyResolve(class [mscorlib]System.ResolveEventHandler)
IL_0039:  ret
}
}