❔ 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
bighugemassive3
bighugemassive3OP17mo ago
And some methods even use ref and I have no idea how to deal with that
Jimmacle
Jimmacle17mo ago
easier? no
bighugemassive3
bighugemassive3OP17mo ago
😦
JakenVeina
JakenVeina17mo ago
probably easier than duplicating an assembly and changing the access modifiers on everything is to just inject [InternalsVisibleTo()] into it
Accord
Accord17mo ago
Was 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.
Want results from more Discord servers?
Add your server