resync
[mcs.git] / errors / cs0647-5.cs
bloba642255f3359b84953b45419679db90af5d38a3c
1 // cs0647-5.cs: Error during emitting `DebugPermissionAttribute' attribute. The reason is `it is attached to invalid parent'
2 // Line : 11
4 using System;
5 using System.Security;
6 using System.Security.Permissions;
8 public class Program {
9 public delegate int DisplayHandler (string msg);
11 [DebugPermission (SecurityAction.RequestMinimum)]
12 public event DisplayHandler OnShow;
15 [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)]
16 [Serializable]
17 public class DebugPermissionAttribute : CodeAccessSecurityAttribute {
19 public DebugPermissionAttribute (SecurityAction action)
20 : base (action)
24 public override IPermission CreatePermission ()
26 return null;