|
Listing 6-7 extracted from chapter
Security
Listing 6-6< > Listing 6-8
This listing can be compiled with the command line: csc.exe /target:exe Example_6_7.cs Errors: 0 Warnings: 0
Example_6_7.cs
using System.Security.Permissions;
class Program{
[RegistryPermission(SecurityAction.Assert)]
static void Main(){
// Here, we can have access to the registry.
}
}
Copyright Patrick Smacchia 2006 2007
|