This looks like a pretty cool demonstration of what we're talking about: https://www.strathweb.com/2019/01/collectible-assemblies-in-...
See the section titled: Collecting a dynamically emitted assembly
See the section titled: Collecting a dynamically emitted assembly