/// <summary> /// Create a new MetadataLoadContext object. /// </summary> /// <param name="coreAssemblyName"> /// The name of the assembly that contains the core types such as System.Object. Typically, this would be "mscorlib". /// </param> public MetadataLoadContext(MetadataAssemblyResolver resolver, string coreAssemblyName = null) { if (resolver == null) { throw new ArgumentNullException(nameof(resolver)); } this.resolver = resolver; if (coreAssemblyName != null) { // Validate now that the value is a parsable assembly name. new AssemblyName(coreAssemblyName); } // Resolve the core assembly now _coreTypes = new CoreTypes(this, coreAssemblyName); }
public MetadataLoadContext(MetadataAssemblyResolver resolver, string coreAssemblyName = null) { }