DCSIMG
reflection - Pavel's Blog
Sign in | Join | Help

Pavel's Blog

Pavel is a software guy that is interested in almost everything
software related... way too much for too little time

Browse by Tags

Reflection and Privates
08 July 08 02:32 PM | pavely | 4 comment(s)
During teaching of .NET reflection topics, I mention that using reflection, one can get to the private members of types, and even invoke those members dynamically. I sometimes get the response in the lines of - how is this possible? What's the point of putting something as private if it's exposed through reflection? The answer to the "dilemma" is that applications usually run with FullTrust permissions, which means they actually can do anything, including poking in other's privates...