diff --git a/xml/System.Reflection/DispatchProxy.xml b/xml/System.Reflection/DispatchProxy.xml
index 985695713cd..77ad26c46a0 100644
--- a/xml/System.Reflection/DispatchProxy.xml
+++ b/xml/System.Reflection/DispatchProxy.xml
@@ -24,7 +24,7 @@
- To be added.
+ Provides a mechanism for instantiating proxy objects and handling their method dispatch.
To be added.
@@ -90,11 +90,12 @@
- To be added.
- To be added.
- To be added.
- To be added.
+ The interface the proxy should implement.
+ The base class to use for the proxy class.
+ Creates an object instance that derives from class and implements interface .
+ An object instance that implements .
To be added.
+ is a class, or is sealed or does not have a parameterless constructor.
@@ -127,12 +128,12 @@
- To be added.
- To be added.
- To be added.
- To be added.
+ The method the caller invoked.
+ The arguments the caller passed to the method.
+ Whenever any method on the generated proxy type is called. Rhis method will be invoked to dispatch control.
+ The object to return to the caller, or for void methods.
To be added.
-
\ No newline at end of file
+
diff --git a/xml/System.Reflection/MetadataLoadContext.xml b/xml/System.Reflection/MetadataLoadContext.xml
index 5e9033271dd..fbf36ff50b0 100644
--- a/xml/System.Reflection/MetadataLoadContext.xml
+++ b/xml/System.Reflection/MetadataLoadContext.xml
@@ -18,8 +18,16 @@
- To be added.
- To be added.
+ Represents a closed universe of Type objects loaded for inspection-only purposes. Each MetadataLoadContext can have its own binding rules and is isolated from all other MetadataLoadContexts.
+
+ instances that were previously loaded into the context or need to be loaded.
+
+Assemblies are treated strictly as metadata. There are no restrictions on loading assemblies based on target platform, CPU architecture, or pointer size. There are no restrictions on the assembly designated as the core assembly (**mscorlib**).
+
+ ]]>
+
@@ -38,9 +46,9 @@
- To be added.
- To be added.
- To be added.
+ A instance.
+ The name of the assembly that contains the core types such as . Typically, this would be "mscorlib".
+ Creates a new object.
To be added.
@@ -60,9 +68,57 @@
System.Reflection.Assembly
- To be added.
- To be added.
- To be added.
+ Gets or sets the assembly that denotes the "system assembly" that houses the well-known types such as .
+ An instance.
+
+
+ constructor
+to the method.
+
+If no `coreAssemblyName` argument was specified in the constructor of , then default values are used, including "mscorlib", "System.Runtime" and "netstandard".
+
+The designated core assembly does not need to contain the core types directly. It can type forward them to other assemblies. Thus, it is perfectly permissible to use the mscorlib facade as the designated core assembly.
+
+Note that is not an ideal core assembly because it excludes some of the interop-related pseudo-custom attribute types such as . However, it can serve if you have no interest in those attributes. The CustomAttributes API will skip those attributes if the core assembly does not include the necessary types.
+
+The core assembly is not loaded until necessary. The following APIs do not trigger the search for the core assembly:
+
+*
+*
+*
+*
+*
+*
+*
+*
+*
+*
+*
+*
+*
+*
+
+If a core assembly cannot be found or if the core assembly is missing types, this will affect the behavior of the as follows:
+
+* APIs that need to parse signatures or typespecs and return the results as objects will throw an exception. For example:
+
+ *
+ * System.Reflection.MethodBase.GetParameters%2A?displayProperty=nameWithType>
+ *
+ *
+
+* APIs that need to compare types to well-known core types will not throw an exception, and the comparison will evaluate to `false`. For example, if you do not specify a core assembly, will return `false` for everything, even types named . Similarly, will return for everything.
+
+* If a metadata entity sets flags that surface as a pseudo-custom attribute, and the core assembly does not contain the pseudo-custom attribute type, the necessary constructor or any of the parameter types of the constructor, the will not throw. It will omit the pseudo-custom attribute from the list of returned attributes.
+ ]]>
+
@@ -85,8 +141,17 @@
- To be added.
- To be added.
+ Releases any native resources (such as file locks on assembly files).
+
+ objects dispensed by the or any reflection objects dispensed by those objects.
+
+Though objects provided by the strive to throw an , this is not guaranteed.
+
+Some APIs may return fixed or previously cached data. Accessing objects *during* a method call may result in an unmanaged access violation and failfast.
+ ]]>
+
@@ -106,8 +171,8 @@
- To be added.
- To be added.
+ Return an atomic snapshot of the assemblies that have been loaded into the .
+ An enumerable collection of objects.
To be added.
@@ -129,10 +194,16 @@
- To be added.
- To be added.
- To be added.
- To be added.
+ An instance.
+ Resolves the supplied assembly name to an assembly. If an assembly was previously bound to this name, that assembly is returned. Otherwise, the calls the specified .
+ An instance.
+
+ resolve event but does not match the behavior of . (The latter gives up without raising its resolve event.)
+ ]]>
+
+ The resolver returns .
@@ -154,10 +225,18 @@
- To be added.
- To be added.
- To be added.
- To be added.
+ A representing the assembly name.
+ Resolves the supplied assembly name to an assembly. If an assembly was previously bound to this name, that assembly is returned. Otherwise, the calls the specified .
+ An instance.
+
+
+ resolve event but does not match the behavior of . (The latter gives up without raising its resolve event.)
+ ]]>
+
+
+ The resolver returns .
@@ -179,10 +258,11 @@
- To be added.
- To be added.
- To be added.
+ A representing the path to the assembly.
+ Loads an assembly from a specific path on the disk and binds its assembly name to it in the . If a prior assembly with the same name was already loaded into the , the prior assembly will be returned.
+ An instance.
To be added.
+ The two assemblies do not have the same Mvid.
@@ -203,10 +283,11 @@
- To be added.
- To be added.
- To be added.
+ A holding an assembly.
+ Loads an assembly from a byte array and binds its assembly name to it in the . If a prior assembly with the same name was already loaded into the , the prior assembly will be returned.
+ An instance.
To be added.
+ The two assemblies do not have the same Mvid.
@@ -227,11 +308,20 @@
- To be added.
- To be added.
+ A holding an assembly.
+ Loads an assembly from a stream and binds its assembly name to it in the . If a prior assembly with the same name was already loaded into the , the prior assembly will be returned.
To be added.
- To be added.
+
+
+ [!IMPORTANT]
+> The takes ownership of the passed into this method. The original owner must not mutate its position, dispose the , or assume that its position will stay unchanged.
+ ]]>
+
+ The two assemblies do not have the same Mvid.
-
\ No newline at end of file
+