blob: 3afbfe5f95db20417ed500688ff4b8b30e4f6644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
enum Foo { Bar };
class BazAttribute : System.Attribute
{
public BazAttribute () {}
public BazAttribute (Foo foo1) {}
public Foo foo2;
public Foo foo3 { set {} get { return Foo.Bar; } }
};
class Test
{
[Baz (Foo.Bar)] void f0() {}
[Baz ((Foo) 1)] void f1() {}
[Baz (foo2 = (Foo) 2)] void f2() {}
[Baz (foo3 = (Foo) 3)] void f3() {}
public static void Main() { }
}
|