﻿.class private abstract auto ansi sealed beforefieldinit Costura.AssemblyLoader
extends [System.Private.CoreLib]System.Object
{
.class abstract auto ansi sealed nested private beforefieldinit '<>O'
extends [System.Private.CoreLib]System.Object
{
.field public static class [System.Private.CoreLib]System.Func`3<class [System.Runtime.Loader]System.Runtime.Loader.AssemblyLoadContext,class [System.Runtime]System.Reflection.AssemblyName,class [System.Runtime]System.Reflection.Assembly> '<0>__ResolveAssembly'
}
.field private static object nullCacheLock
.field private static class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,bool> nullCache
.field private static class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> assemblyNames
.field private static class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> symbolNames
.field private static int32 isAttached
.method private hidebysig static string
CultureToString(class [System.Private.CoreLib]System.Globalization.CultureInfo culture) cil managed
{
.maxstack  8
IL_0000:  ldarg.0
IL_0001:  brtrue.s   IL_0009
IL_0003:  ldsfld     string [System.Private.CoreLib]System.String::Empty
IL_0008:  ret
IL_0009:  ldarg.0
IL_000a:  callvirt   instance string [System.Private.CoreLib]System.Globalization.CultureInfo::get_Name()
IL_000f:  ret
}
.method private hidebysig static class [System.Private.CoreLib]System.Reflection.Assembly
ReadExistingAssembly(class [System.Private.CoreLib]System.Reflection.AssemblyName name) cil managed
{
.maxstack  3
.locals init (class [System.Private.CoreLib]System.AppDomain V_0,
class [System.Private.CoreLib]System.Reflection.Assembly[] V_1,
class [System.Private.CoreLib]System.Reflection.Assembly[] V_2,
int32 V_3,
class [System.Private.CoreLib]System.Reflection.Assembly V_4,
class [System.Private.CoreLib]System.Reflection.AssemblyName V_5,
class [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext V_6,
bool V_7,
bool V_8)
IL_0000:  call       class [System.Private.CoreLib]System.AppDomain [System.Private.CoreLib]System.AppDomain::get_CurrentDomain()
IL_0005:  stloc.0
IL_0006:  ldloc.0
IL_0007:  callvirt   instance class [System.Private.CoreLib]System.Reflection.Assembly[] [System.Private.CoreLib]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_0090
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 [System.Private.CoreLib]System.Reflection.AssemblyName [System.Private.CoreLib]System.Reflection.Assembly::GetName()
IL_001f:  stloc.s    V_5
IL_0021:  ldloc.s    V_5
IL_0023:  callvirt   instance string [System.Private.CoreLib]System.Reflection.AssemblyName::get_Name()
IL_0028:  ldarg.0
IL_0029:  callvirt   instance string [System.Private.CoreLib]System.Reflection.AssemblyName::get_Name()
IL_002e:  ldc.i4.3
IL_002f:  call       bool [System.Private.CoreLib]System.String::Equals(string,
string,
valuetype [System.Private.CoreLib]System.StringComparison)
IL_0034:  brfalse.s  IL_008c
IL_0036:  ldloc.s    V_5
IL_0038:  callvirt   instance class [System.Private.CoreLib]System.Globalization.CultureInfo [System.Private.CoreLib]System.Reflection.AssemblyName::get_CultureInfo()
IL_003d:  call       string Costura.AssemblyLoader::CultureToString(class [System.Private.CoreLib]System.Globalization.CultureInfo)
IL_0042:  ldarg.0
IL_0043:  callvirt   instance class [System.Private.CoreLib]System.Globalization.CultureInfo [System.Private.CoreLib]System.Reflection.AssemblyName::get_CultureInfo()
IL_0048:  call       string Costura.AssemblyLoader::CultureToString(class [System.Private.CoreLib]System.Globalization.CultureInfo)
IL_004d:  ldc.i4.3
IL_004e:  call       bool [System.Private.CoreLib]System.String::Equals(string,
string,
valuetype [System.Private.CoreLib]System.StringComparison)
IL_0053:  brfalse.s  IL_008c
IL_0055:  ldloc.s    V_4
IL_0057:  call       class [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext::GetLoadContext(class [System.Private.CoreLib]System.Reflection.Assembly)
IL_005c:  stloc.s    V_6
IL_005e:  ldloc.s    V_6
IL_0060:  call       class [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext::get_Default()
IL_0065:  ceq
IL_0067:  stloc.s    V_7
IL_0069:  ldloc.s    V_7
IL_006b:  brtrue.s   IL_0089
IL_006d:  ldstr      "System.Runtime.Loader.IndividualAssemblyLoadContext"
IL_0072:  ldloc.s    V_6
IL_0074:  callvirt   instance class [System.Private.CoreLib]System.Type [System.Private.CoreLib]System.Object::GetType()
IL_0079:  callvirt   instance string [System.Private.CoreLib]System.Type::get_FullName()
IL_007e:  call       bool [System.Private.CoreLib]System.String::op_Equality(string,
string)
IL_0083:  stloc.s    V_8
IL_0085:  ldloc.s    V_8
IL_0087:  brfalse.s  IL_008c
IL_0089:  ldloc.s    V_4
IL_008b:  ret
IL_008c:  ldloc.3
IL_008d:  ldc.i4.1
IL_008e:  add
IL_008f:  stloc.3
IL_0090:  ldloc.3
IL_0091:  ldloc.2
IL_0092:  ldlen
IL_0093:  conv.i4
IL_0094:  blt        IL_0013
IL_0099:  ldnull
IL_009a:  ret
}
.method private hidebysig static string
GetAssemblyResourceName(class [System.Private.CoreLib]System.Reflection.AssemblyName requestedAssemblyName) cil managed
{
.maxstack  3
.locals init (string V_0)
IL_0000:  ldarg.0
IL_0001:  callvirt   instance string [System.Private.CoreLib]System.Reflection.AssemblyName::get_Name()
IL_0006:  callvirt   instance string [System.Private.CoreLib]System.String::ToLowerInvariant()
IL_000b:  stloc.0
IL_000c:  ldarg.0
IL_000d:  callvirt   instance class [System.Private.CoreLib]System.Globalization.CultureInfo [System.Private.CoreLib]System.Reflection.AssemblyName::get_CultureInfo()
IL_0012:  brfalse.s  IL_0042
IL_0014:  ldarg.0
IL_0015:  callvirt   instance class [System.Private.CoreLib]System.Globalization.CultureInfo [System.Private.CoreLib]System.Reflection.AssemblyName::get_CultureInfo()
IL_001a:  callvirt   instance string [System.Private.CoreLib]System.Globalization.CultureInfo::get_Name()
IL_001f:  call       bool [System.Private.CoreLib]System.String::IsNullOrEmpty(string)
IL_0024:  brtrue.s   IL_0042
IL_0026:  ldarg.0
IL_0027:  callvirt   instance class [System.Private.CoreLib]System.Globalization.CultureInfo [System.Private.CoreLib]System.Reflection.AssemblyName::get_CultureInfo()
IL_002c:  call       string Costura.AssemblyLoader::CultureToString(class [System.Private.CoreLib]System.Globalization.CultureInfo)
IL_0031:  ldstr      "."
IL_0036:  ldloc.0
IL_0037:  call       string [System.Private.CoreLib]System.String::Concat(string,
string,
string)
IL_003c:  callvirt   instance string [System.Private.CoreLib]System.String::ToLowerInvariant()
IL_0041:  stloc.0
IL_0042:  ldloc.0
IL_0043:  ret
}
.method private hidebysig static void  CopyTo(class [System.Private.CoreLib]System.IO.Stream source,
class [System.Private.CoreLib]System.IO.Stream destination) cil managed
{
.maxstack  4
.locals init (uint8[] V_0,
int32 V_1)
IL_0000:  ldc.i4     0x14000
IL_0005:  newarr     [System.Private.CoreLib]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 [System.Private.CoreLib]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 [System.Private.CoreLib]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 [System.Private.CoreLib]System.IO.Stream
LoadStream(string fullName) cil managed
{
.maxstack  2
.locals init (class [System.Private.CoreLib]System.Reflection.Assembly V_0,
class [System.Private.CoreLib]System.IO.Stream V_1,
class [System.IO.Compression]System.IO.Compression.DeflateStream V_2,
class [System.Private.CoreLib]System.IO.MemoryStream V_3,
class [System.Private.CoreLib]System.IO.Stream V_4)
IL_0000:  call       class [System.Private.CoreLib]System.Reflection.Assembly [System.Private.CoreLib]System.Reflection.Assembly::GetExecutingAssembly()
IL_0005:  stloc.0
IL_0006:  ldarg.0
IL_0007:  ldstr      ".compressed"
IL_000c:  callvirt   instance bool [System.Private.CoreLib]System.String::EndsWith(string)
IL_0011:  brfalse.s  IL_0051
IL_0013:  ldloc.0
IL_0014:  ldarg.0
IL_0015:  callvirt   instance class [System.Private.CoreLib]System.IO.Stream [System.Private.CoreLib]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.IO.Compression]System.IO.Compression.DeflateStream::.ctor(class [System.Runtime]System.IO.Stream,
valuetype [System.IO.Compression]System.IO.Compression.CompressionMode)
IL_0022:  stloc.2
.try
{
IL_0023:  newobj     instance void [System.Private.CoreLib]System.IO.MemoryStream::.ctor()
IL_0028:  stloc.3
IL_0029:  ldloc.2
IL_002a:  ldloc.3
IL_002b:  call       void Costura.AssemblyLoader::CopyTo(class [System.Private.CoreLib]System.IO.Stream,
class [System.Private.CoreLib]System.IO.Stream)
IL_0030:  ldloc.3
IL_0031:  ldc.i4.0
IL_0032:  conv.i8
IL_0033:  callvirt   instance void [System.Private.CoreLib]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 [System.Private.CoreLib]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 [System.Private.CoreLib]System.IDisposable::Dispose()
IL_0050:  endfinally
}  // end handler
IL_0051:  ldloc.0
IL_0052:  ldarg.0
IL_0053:  callvirt   instance class [System.Private.CoreLib]System.IO.Stream [System.Private.CoreLib]System.Reflection.Assembly::GetManifestResourceStream(string)
IL_0058:  ret
IL_0059:  ldloc.s    V_4
IL_005b:  ret
}
.method private hidebysig static class [System.Private.CoreLib]System.IO.Stream
LoadStream(class [System.Private.CoreLib]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 [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::TryGetValue(!0,
!1&)
IL_0009:  brfalse.s  IL_0012
IL_000b:  ldloc.0
IL_000c:  call       class [System.Private.CoreLib]System.IO.Stream Costura.AssemblyLoader::LoadStream(string)
IL_0011:  ret
IL_0012:  ldnull
IL_0013:  ret
}
.method private hidebysig static uint8[]
ReadStream(class [System.Private.CoreLib]System.IO.Stream 'stream') cil managed
{
.maxstack  2
.locals init (class [System.Private.CoreLib]System.IO.MemoryStream V_0,
uint8[] V_1)
IL_0000:  newobj     instance void [System.Private.CoreLib]System.IO.MemoryStream::.ctor()
IL_0005:  stloc.0
.try
{
IL_0006:  ldarg.0
IL_0007:  ldloc.0
IL_0008:  callvirt   instance void [System.Private.CoreLib]System.IO.Stream::CopyTo(class [System.Private.CoreLib]System.IO.Stream)
IL_000d:  ldloc.0
IL_000e:  callvirt   instance uint8[] [System.Private.CoreLib]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 [System.Private.CoreLib]System.IDisposable::Dispose()
IL_001f:  endfinally
}  // end handler
IL_0020:  ldloc.1
IL_0021:  ret
}
.method private hidebysig static class [System.Private.CoreLib]System.Reflection.Assembly
ReadFromEmbeddedResources(class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> assemblyNames,
class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> symbolNames,
class [System.Private.CoreLib]System.Reflection.AssemblyName requestedAssemblyName) cil managed
{
.maxstack  2
.locals init (string V_0,
uint8[] V_1,
class [System.Private.CoreLib]System.IO.Stream V_2,
class [System.Private.CoreLib]System.Reflection.Assembly V_3,
class [System.Private.CoreLib]System.IO.Stream V_4,
uint8[] V_5)
IL_0000:  ldarg.2
IL_0001:  call       string Costura.AssemblyLoader::GetAssemblyResourceName(class [System.Private.CoreLib]System.Reflection.AssemblyName)
IL_0006:  stloc.0
IL_0007:  ldarg.0
IL_0008:  ldloc.0
IL_0009:  call       class [System.Private.CoreLib]System.IO.Stream Costura.AssemblyLoader::LoadStream(class [System.Private.CoreLib]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 [System.Private.CoreLib]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 [System.Private.CoreLib]System.IDisposable::Dispose()
IL_0028:  endfinally
}  // end handler
IL_0029:  ldarg.1
IL_002a:  ldloc.0
IL_002b:  call       class [System.Private.CoreLib]System.IO.Stream Costura.AssemblyLoader::LoadStream(class [System.Private.CoreLib]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 [System.Private.CoreLib]System.IO.Stream)
IL_003d:  stloc.s    V_5
IL_003f:  ldloc.1
IL_0040:  ldloc.s    V_5
IL_0042:  call       class [System.Private.CoreLib]System.Reflection.Assembly [System.Private.CoreLib]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 [System.Private.CoreLib]System.IDisposable::Dispose()
IL_0057:  endfinally
}  // end handler
IL_0058:  ldloc.1
IL_0059:  call       class [System.Private.CoreLib]System.Reflection.Assembly [System.Private.CoreLib]System.Reflection.Assembly::Load(uint8[])
IL_005e:  ret
IL_005f:  ldloc.3
IL_0060:  ret
}
.method public hidebysig static class [System.Private.CoreLib]System.Reflection.Assembly
ResolveAssembly(class [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext assemblyLoadContext,
class [System.Private.CoreLib]System.Reflection.AssemblyName assemblyName) cil managed
{
.maxstack  3
.locals init (string V_0,
class [System.Private.CoreLib]System.Reflection.Assembly V_1,
object V_2,
bool V_3,
class [System.Private.CoreLib]System.Reflection.Assembly V_4,
object V_5,
bool V_6)
IL_0000:  ldarg.1
IL_0001:  callvirt   instance string [System.Private.CoreLib]System.Reflection.AssemblyName::get_Name()
IL_0006:  stloc.0
IL_0007:  ldsfld     object Costura.AssemblyLoader::nullCacheLock
IL_000c:  stloc.2
IL_000d:  ldc.i4.0
IL_000e:  stloc.3
.try
{
IL_000f:  ldloc.2
IL_0010:  ldloca.s   V_3
IL_0012:  call       void [System.Private.CoreLib]System.Threading.Monitor::Enter(object,
bool&)
IL_0017:  ldsfld     class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,bool> Costura.AssemblyLoader::nullCache
IL_001c:  ldloc.0
IL_001d:  callvirt   instance bool class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,bool>::ContainsKey(!0)
IL_0022:  brfalse.s  IL_0029
IL_0024:  ldnull
IL_0025:  stloc.s    V_4
IL_0027:  leave.s    IL_0099
IL_0029:  leave.s    IL_0035
}  // end .try
finally
{
IL_002b:  ldloc.3
IL_002c:  brfalse.s  IL_0034
IL_002e:  ldloc.2
IL_002f:  call       void [System.Private.CoreLib]System.Threading.Monitor::Exit(object)
IL_0034:  endfinally
}  // end handler
IL_0035:  ldarg.1
IL_0036:  call       class [System.Private.CoreLib]System.Reflection.Assembly Costura.AssemblyLoader::ReadExistingAssembly(class [System.Private.CoreLib]System.Reflection.AssemblyName)
IL_003b:  stloc.1
IL_003c:  ldloc.1
IL_003d:  brfalse.s  IL_0041
IL_003f:  ldloc.1
IL_0040:  ret
IL_0041:  ldsfld     class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::assemblyNames
IL_0046:  ldsfld     class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::symbolNames
IL_004b:  ldarg.1
IL_004c:  call       class [System.Private.CoreLib]System.Reflection.Assembly Costura.AssemblyLoader::ReadFromEmbeddedResources(class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>,
class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>,
class [System.Private.CoreLib]System.Reflection.AssemblyName)
IL_0051:  stloc.1
IL_0052:  ldloc.1
IL_0053:  brtrue.s   IL_0097
IL_0055:  ldsfld     object Costura.AssemblyLoader::nullCacheLock
IL_005a:  stloc.s    V_5
IL_005c:  ldc.i4.0
IL_005d:  stloc.s    V_6
.try
{
IL_005f:  ldloc.s    V_5
IL_0061:  ldloca.s   V_6
IL_0063:  call       void [System.Private.CoreLib]System.Threading.Monitor::Enter(object,
bool&)
IL_0068:  ldsfld     class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,bool> Costura.AssemblyLoader::nullCache
IL_006d:  ldloc.0
IL_006e:  ldc.i4.1
IL_006f:  callvirt   instance void class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,bool>::set_Item(!0,
!1)
IL_0074:  leave.s    IL_0082
}  // end .try
finally
{
IL_0076:  ldloc.s    V_6
IL_0078:  brfalse.s  IL_0081
IL_007a:  ldloc.s    V_5
IL_007c:  call       void [System.Private.CoreLib]System.Threading.Monitor::Exit(object)
IL_0081:  endfinally
}  // end handler
IL_0082:  ldarg.1
IL_0083:  callvirt   instance valuetype [System.Private.CoreLib]System.Reflection.AssemblyNameFlags [System.Private.CoreLib]System.Reflection.AssemblyName::get_Flags()
IL_0088:  ldc.i4     0x100
IL_008d:  and
IL_008e:  brfalse.s  IL_0097
IL_0090:  ldarg.1
IL_0091:  call       class [System.Private.CoreLib]System.Reflection.Assembly [System.Private.CoreLib]System.Reflection.Assembly::Load(class [System.Private.CoreLib]System.Reflection.AssemblyName)
IL_0096:  stloc.1
IL_0097:  ldloc.1
IL_0098:  ret
IL_0099:  ldloc.s    V_4
IL_009b:  ret
}
.method private hidebysig specialname rtspecialname static
void  .cctor() cil managed
{
.maxstack  3
IL_0000:  newobj     instance void [System.Private.CoreLib]System.Object::.ctor()
IL_0005:  stsfld     object Costura.AssemblyLoader::nullCacheLock
IL_000a:  newobj     instance void class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,bool>::.ctor()
IL_000f:  stsfld     class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,bool> Costura.AssemblyLoader::nullCache
IL_0014:  newobj     instance void class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::.ctor()
IL_0019:  stsfld     class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::assemblyNames
IL_001e:  newobj     instance void class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::.ctor()
IL_0023:  stsfld     class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::symbolNames
IL_0028:  ldsfld     class [System.Private.CoreLib]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 [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_003c:  ldsfld     class [System.Private.CoreLib]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 [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_0050:  ldsfld     class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string> Costura.AssemblyLoader::assemblyNames
IL_0055:  ldstr      "assemblytoreferencepreembedded"
IL_005a:  ldstr      "costura.assemblytoreferencepreembedded.dll.compres"
+ "sed"
IL_005f:  callvirt   instance void class [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_0064:  ldsfld     class [System.Private.CoreLib]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 [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_0078:  ldsfld     class [System.Private.CoreLib]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 [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_008c:  ldsfld     class [System.Private.CoreLib]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 [System.Private.CoreLib]System.Collections.Generic.Dictionary`2<string,string>::Add(!0,
!1)
IL_00a0:  ret
}
.method public hidebysig static void  Attach(bool subscribe) cil managed
{
.maxstack  8
IL_0000:  ldsflda    int32 Costura.AssemblyLoader::isAttached
IL_0005:  ldc.i4.1
IL_0006:  call       int32 [System.Private.CoreLib]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_0037
IL_0012:  call       class [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext::get_Default()
IL_0017:  ldsfld     class [System.Private.CoreLib]System.Func`3<class [System.Runtime.Loader]System.Runtime.Loader.AssemblyLoadContext,class [System.Runtime]System.Reflection.AssemblyName,class [System.Runtime]System.Reflection.Assembly> Costura.AssemblyLoader/'<>O'::'<0>__ResolveAssembly'
IL_001c:  dup
IL_001d:  brtrue.s   IL_0032
IL_001f:  pop
IL_0020:  ldnull
IL_0021:  ldftn      class [System.Private.CoreLib]System.Reflection.Assembly Costura.AssemblyLoader::ResolveAssembly(class [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext,
class [System.Private.CoreLib]System.Reflection.AssemblyName)
IL_0027:  newobj     instance void class [System.Private.CoreLib]System.Func`3<class [System.Runtime.Loader]System.Runtime.Loader.AssemblyLoadContext,class [System.Runtime]System.Reflection.AssemblyName,class [System.Runtime]System.Reflection.Assembly>::.ctor(object,
native int)
IL_002c:  dup
IL_002d:  stsfld     class [System.Private.CoreLib]System.Func`3<class [System.Runtime.Loader]System.Runtime.Loader.AssemblyLoadContext,class [System.Runtime]System.Reflection.AssemblyName,class [System.Runtime]System.Reflection.Assembly> Costura.AssemblyLoader/'<>O'::'<0>__ResolveAssembly'
IL_0032:  callvirt   instance void [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext::add_Resolving(class [System.Private.CoreLib]System.Func`3<class [System.Private.CoreLib]System.Runtime.Loader.AssemblyLoadContext,class [System.Private.CoreLib]System.Reflection.AssemblyName,class [System.Private.CoreLib]System.Reflection.Assembly>)
IL_0037:  ret
}
}