❔ Invoking internal methods without reflection?
I'm trying to enable virtualization for a custom TreeView type in WPF, but it requires that I invoke a bunch of methods and access fields that are all internal, such as UncommonField. Is there an easier way to invoke this stuff without using reflection? Having to manually write out all the type names is gonna take forever 😦
5 Replies
And some methods even use ref and I have no idea how to deal with that
easier? no
😦
probably easier than duplicating an assembly and changing the access modifiers on everything is to just inject
[InternalsVisibleTo()]
into itWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.