using Mono.Cecil; var module = ModuleDefinition.ReadModule("MyAssembly.dll"); var typeRef = module.ImportReference(typeof(SomeType));This code imports a type reference for the `SomeType` class defined in a different assembly and references it in the current module. The `ReadModule` method reads the target assembly into a `ModuleDefinition` object, and the `typeof` operator provides the type reference for `SomeType`. Package library: Mono.Cecil is a package library for .NET and .NET Core that provides facilities for working with Common Intermediate Language (CIL) and metadata in .NET assemblies.