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.
Description:
When calling methods via
TryRunExtensionMethod
mechanism, at some pointModify.SortExtensionMethods
gets called to pick the most suitable method to call. Currently, the sorting method cannot meaningfully deal with extension methods targeting typeobject
, so it skips them, which in practice means that extension methods targetingobject
cannot be called usingTryRunExtensionMethod
.