1 // CS7070: Security attribute `DebugPermissionAttribute' is not valid on this declaration type. Security attributes are only valid on assembly, type and method declarations
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 ()