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

test-471.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 771a8e95be6a4c79a0234c24152b32980ea6277e (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
using System;

class AAttribute : Attribute
{
	public string Value;
	
	public AAttribute (string s)
	{
		Value = s;
	}
}

[A (value)]
class MainClass
{
	const string value = null;
	
	public static int Main ()
	{
		var attr = typeof (MainClass).GetCustomAttributes (false) [0] as AAttribute;
		if (attr.Value != null)
			return 1;
		
		return 0;
	}
}