Skip to content

Latest commit

 

History

History
 
 

MetadataLoadContext

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
languages products page_type name urlFragment description
csharp
dotnet-core
sample
Inspect assembly contents using MetadataLoadContext
inspect-assembly-contents-using-metadataloadcontext
A sample console application that shows how to use MetadataLoadContext to load an assembly for inspection purposes.

Inspect assembly contents using MetadataLoadContext

This sample is a .NET Core console application that loads a specified assembly and prints its custom attributes and defined types. It demonstrates how to use the System.Reflection.MetadataLoadContext API to load an assembly for inspection purposes.

Build and run the sample

After downloading the source, open a command prompt in the sample directory and enter the following commands:

dotnet build
dotnet run -- <assembly path>