C
C#15mo ago
br4kejet

❔ 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
br4kejet
br4kejetOP15mo ago
And some methods even use ref and I have no idea how to deal with that
Jimmacle
Jimmacle15mo ago
easier? no
br4kejet
br4kejetOP15mo ago
😦
JakenVeina
JakenVeina15mo ago
probably easier than duplicating an assembly and changing the access modifiers on everything is to just inject [InternalsVisibleTo()] into it
Accord
Accord15mo 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