In order to emit the setter and getter, I need a variable representing the final compiled/emitted Type
Actually, you don't: you just need to pass the TypeBuilder
as the type of the property (TypeBuilder
inherits from Type
, so it's a valid argument for the returnType
parameter of DefineProperty
)