Great post on CodeProject on CAS...

Maxim Karpov posts a great article explaining Code Access Security... A good read...

https://www.codeproject.com/gen/design/CASDesignPatterns.asp