2009-09-02 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0647-7.cs
blob3801eb829e06622a802b75f416d8aaf5a10380e0
1 // cs0647-7.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 {
10 [DebugPermission (SecurityAction.LinkDemand)]
11 public int Show
13 get {
14 return 2;
19 [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)]
20 [Serializable]
21 public class DebugPermissionAttribute : CodeAccessSecurityAttribute {
23 public DebugPermissionAttribute (SecurityAction action)
24 : base (action)
28 public override IPermission CreatePermission ()
30 return null;