add monotouch sources file
[mcs.git] / errors / cs0647-4.cs
blob1b74109c02c72f9c4981b0070a8550243a0a287d
1 // cs0647-4.cs: Error during emitting `DebugPermissionAttribute' attribute. The reason is `it is attached to invalid parent'
2 // Line : 10
4 using System;
5 using System.Security;
6 using System.Security.Permissions;
8 public class Program {
10 [DebugPermission (SecurityAction.RequestMinimum)]
11 public int i;
14 [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)]
15 [Serializable]
16 public class DebugPermissionAttribute : CodeAccessSecurityAttribute {
18 public DebugPermissionAttribute (SecurityAction action)
19 : base (action)
23 public override IPermission CreatePermission ()
25 return null;