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

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

public struct SymbolId
{
}

public interface IAttributesCollection
{
	object this [SymbolId name] { get; set; }
}

class AttributesCollection : IAttributesCollection
{
	public object this [SymbolId name] { 
		get { return null; } 
		set { }
	}
}

class Program
{
	public static object SetDictionaryValue (object self, SymbolId name, object value)
	{
		IAttributesCollection dict = new AttributesCollection ();
		return dict [name] = value;
	}

	public static void Main ()
	{
		SetDictionaryValue (null, new SymbolId (), 1);
	}
}