Jo Shields 181b81b4a4 Imported Upstream version 3.12.0
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
2015-01-13 10:44:36 +00:00

27 lines
458 B
C#

// CS7048: First argument of a security attribute `CustomSecurityAttribute' must be a valid SecurityAction
// Line: 20
using System.Security;
using System.Security.Permissions;
public class CustomSecurityAttribute : CodeAccessSecurityAttribute
{
public CustomSecurityAttribute ()
: base (SecurityAction.Demand)
{
}
public override IPermission CreatePermission()
{
return null;
}
}
[CustomSecurity]
class X
{
public static void Main ()
{
}
}