How can I protect my private funcs against reflection executing?

前端 未结 9 1203
深忆病人
深忆病人 2020-12-05 15:05

After seeing this: Do access modifiers affect reflection also?

I tried using this, but it doesn\'t work: \"enter

9条回答
  •  执念已碎
    2020-12-05 15:48

    There is no way to do that. Why do you want to prevent execution of your private funcs? Usually, if someone uses reflection, he knows what he's doing.

提交回复
热议问题