1 // cs0647-5.cs: Error during emitting `DebugPermissionAttribute' attribute. The reason is `it is attached to invalid parent'
6 using System
.Security
.Permissions
;
9 public delegate int DisplayHandler (string msg
);
11 [DebugPermission (SecurityAction
.RequestMinimum
)]
12 public event DisplayHandler OnShow
;
15 [AttributeUsage (AttributeTargets
.All
, AllowMultiple
= true, Inherited
= false)]
17 public class DebugPermissionAttribute
: CodeAccessSecurityAttribute
{
19 public DebugPermissionAttribute (SecurityAction action
)
24 public override IPermission
CreatePermission ()