181b81b4a4
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
27 lines
458 B
C#
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 ()
|
|
{
|
|
}
|
|
}
|