Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs7048.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 398c32e7dc7eeaa56c529f7e6d80b90ea0819aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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 ()
	{
	}
}