blob: 989014659883433a36ba2ce08960aad299b63c41 (
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
|
// CS0646: Cannot specify the `DefaultMember' attribute on type containing an indexer
// Line : 8
using System;
using System.Reflection;
[DefaultMember ("Item")]
public class Foo {
string bar;
public static void Main ()
{
Console.WriteLine ("foo");
}
string this [int idx] {
get {
return "foo";
}
set {
bar = value;
}
}
}
|