2 using System.Runtime.InteropServices;
9 [DllImport ("libc", SetLastError=true)]
10 public static extern uint getuid ();
12 // this attribute has NO effect on LinkDemand!
13 [SuppressUnmanagedCodeSecurity]
18 Console.WriteLine ("*0* getuid: {0}", uid);
21 catch (SecurityException se) {
22 Console.WriteLine ("*1* Expected SecurityException\n{0}", se);
26 Console.WriteLine ("*2* Unexpected exception\n{0}", e);