C
C#10mo 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
br4kejet10mo ago
And some methods even use ref and I have no idea how to deal with that
Jimmacle
Jimmacle10mo ago
easier? no
br4kejet
br4kejet10mo ago
😦
JakenVeina
JakenVeina10mo ago
probably easier than duplicating an assembly and changing the access modifiers on everything is to just inject [InternalsVisibleTo()] into it
Accord
Accord10mo 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
More Posts