April 2002
Intermediate to advanced
816 pages
20h 56m
English
Code Access Security is a process that allows or denies code the right to run from within a method. This could be code that you have a reference to from a third-party or code that you have written. As with any security mechanism, there is a set of guidelines to comply with that should be used to ensure that the code written uses only the permission set intended.
The first guideline is writing type-safe code. Type-safe code is code that accesses types in very well-defined, allowable ways. Type-safety really comes into play when considering the mobile environment. Code that is not type-safe may access memory blocks that it is not allowed to, resulting in a security exception on .NET. Creating type-safe code is not ...