title: How to emit a Type in .NET Core
body: <p>In C#, how do I emit a new Type at runtime with .NET Core? All of the examples I can find for .NET 6 don't seem to work in .NET core (they all begin with getting the current AppDomain, which doesn't exist in .NET core any more).</p>
  
  <p>If possible I would appreciate an example that involves creating a Type and adding a property to the Type.</p>