1 // cs0647-6.cs: Error during emitting `DebugPermissionAttribute' attribute. The reason is `it is attached to invalid parent'
6 using System
.Security
.Permissions
;
10 [return: DebugPermission (SecurityAction
.LinkDemand
)]
11 public int Show (string message
)
17 [AttributeUsage (AttributeTargets
.All
, AllowMultiple
= true, Inherited
= false)]
19 public class DebugPermissionAttribute
: CodeAccessSecurityAttribute
{
21 public DebugPermissionAttribute (SecurityAction action
)
26 public override IPermission
CreatePermission ()