Require that all calls come from code in a specific class
I have a function that takes a Type object as one of its arguments, and I'd like to make sure that it only gets called from code within the class indicated by the given Type. What's the best, most performant way of doing this?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dipal ChoksiRank #199 · 12K reputationPosted May 22, 2008, 4:14 PM EDT
Seth3 reputationPosted May 25, 2008, 7:05 PM EDT