. . . "However, trusted libraries such as the .NET Framework must access these resources, often on behalf of this relatively untrusted user code.The CLR provides code access security as a first line of defense to tweak the set of permissions given to user code." .