diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-10-27 23:57:40 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-10-27 23:57:40 +0400 |
commit | f84590ed8a4e699fd3c13f9767304d642e4d9698 (patch) | |
tree | 164b262719b9642ca19afc5d94f0b018aeb13759 /mcs/errors/cs0647-5.cs | |
parent | 97e531cdef6bccad3eb3ad5160b2867713d0a48e (diff) |
new error tests
svn path=/trunk/mcs/; revision=35365
Diffstat (limited to 'mcs/errors/cs0647-5.cs')
-rw-r--r-- | mcs/errors/cs0647-5.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/errors/cs0647-5.cs b/mcs/errors/cs0647-5.cs new file mode 100644 index 00000000000..5c62d7e4181 --- /dev/null +++ b/mcs/errors/cs0647-5.cs @@ -0,0 +1,28 @@ +// cs0647.cs : Security custom attribute 'DebugPermission' attached to invalid parent +// Line : 11 + +using System; +using System.Security; +using System.Security.Permissions; + +public class Program { + public delegate int DisplayHandler (string msg); + + [DebugPermission (SecurityAction.RequestMinimum)] + public event DisplayHandler OnShow; +} + +[AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)] +[Serializable] +public class DebugPermissionAttribute : CodeAccessSecurityAttribute { + + public DebugPermissionAttribute (SecurityAction action) + : base (action) + { + } + + public override IPermission CreatePermission () + { + return null; + } +} |