for "build" config, import corlib common sources at unix instead (#11989)
[mono-project.git] / mcs / errors / cs7070-3.cs
blob907993dd31ede0d89739125cd557f6ca4689de90
1 // CS7070: Security attribute `DebugPermissionAttribute' is not valid on this declaration type. Security attributes are only valid on assembly, type and method declarations
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;