IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
ActionPrivilegedExceptionAction.cs
Go to the documentation of this file.
1using System;
2
4{
5
6#if FIRST_PASS == false
7
11 class ActionPrivilegedExceptionAction : global::java.security.PrivilegedExceptionAction
12 {
13
14 readonly Action action;
15
20 public ActionPrivilegedExceptionAction(Action action)
21 {
22 this.action = action ?? throw new ArgumentNullException(nameof(action));
23 }
24
25 public object run()
26 {
27 action();
28 return null;
29 }
30
31 }
32
33#endif
34
35}
Implementation of global::java.security.PrivilegedExceptionAction that invokes a delegate.