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

cs0646.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 78b7f4e3c777ba42747875e4093ff2ce41954f60 (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.cs : Cannot specify the DefaultMember attribute on  a 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;
		}
	}
}