BHoM / BHoM_Engine

Internal manipulation of the BHoM
GNU Lesser General Public License v3.0
26 stars 13 forks source link

Serialiser_Engine: MessageForDeleted is not picked up for properties of types that have multiple matching types #3370

Closed pawelbaran closed 2 months ago

pawelbaran commented 2 months ago

Description:

Edge case of an edge case reported under https://github.com/BHoM/BHoM_Engine/issues/3343 - if a property is removed with MessageForDeleted, its parent type will version correctly only if there is exactly one matching type for it.

However, it may happen that there is more than one assembly containing that particular type (which currently happens only with Revit stuff, where we have version-specific assemblies), and then the type is not found, leading to the object being deserialised to CustomObject.