C
C#2y ago
CrosRoad95

❔ Reference counting, reflection

let's say i have following example code
// References: 0 - vs shows 0 references
public void Foo() {}
// References: 0 - vs shows 0 references
public void Foo() {}
but, i have a code that uses reflection to call that method. is it possible to somehow add artifical reference?
5 Replies
ACiDCA7
ACiDCA72y ago
how about comments? because what im reading is that you are looking for solution that where no problem exists
CrosRoad95
CrosRoad95OP2y ago
can comment be counted as reference?
ACiDCA7
ACiDCA72y ago
no what i meant is, just write a comment where u write that this is used by whatever
blinkbat
blinkbat2y ago
why was reflection needed?
Accord
Accord2y 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