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

test-39.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7366b1c0ce2d3534d2f6636809a89da91df8a7c3 (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
27
28
29
30
31
32
33
34
35
36
37
38
using System;
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
	public class SimpleAttribute : Attribute {

		string name = null;

		public string MyNamedArg;

		private string secret;
		
		public SimpleAttribute (string name)
		{
			this.name = name;
		}

		public string AnotherArg {
			get {
				return secret;
			}
			set {
				secret = value;
			}
		}
		
	}

[Simple ("Dummy", MyNamedArg = "Dude!")]
[Simple ("Vids", MyNamedArg = "Raj", AnotherArg = "Foo")]	
	public class Blah {

		public static int Main ()
		{
			Console.WriteLine ("A dummy app which tests attribute emission");
			return 0;
		}
	}