Isn't accessing private fields and properties due to reflection a security issue?
问题 I just recently found out here that it is possible (at least in c#) to look up private fields and properties due to reflection. I was surprised, although I knew that somehow constructs like the DataContractSerializer class need the possibility to access them. The question now is, if anyone can access every field in my classes, this is kind of insecure, isn't it? I mean what if someone has a private bool _isLicensed field. It could be changed easily! Later I found out here that the field