Could unsafe code be used as alternative to reflection?

后端 未结 0 858
傲寒
傲寒 2020-12-14 20:52

I have to set private field\'s value but I cannot use reflection. My first idea was to use unsafe code to get field\'s address and set its value. Setting value type fields t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题