BHoM / BHoM_Engine

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

BHoM_Engine: Modify.SortExtensionMethods excludes methods targeting object #3349

Closed pawelbaran closed 1 month ago

pawelbaran commented 1 month ago

Description:

When calling methods via TryRunExtensionMethod mechanism, at some point Modify.SortExtensionMethods gets called to pick the most suitable method to call. Currently, the sorting method cannot meaningfully deal with extension methods targeting type object, so it skips them, which in practice means that extension methods targeting object cannot be called using TryRunExtensionMethod.