Closed
Description
There are two separate ideas here:
- To implement the
AddInstanceFieldToExistingType
EnC capability, we need to be able to hang new instance variables on existing classes (a prototype of the managed part is in Mono.HotReload.InstanceFieldTable in CoreLib). - Implement adding instance fields to newly-added classes. This is part of the
NewTypeDefinition
capability. Here we would like to allocate the storage for the new instance fields in the newly laid out class. This is done in [mono] Hot Reload: support for reloadable types #66749
Contributes to #57365
Related issues:
- https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1577259 - adding
x:Name
to a MAUI xaml file results in a rude edit - the code-behind is adding an instance field.