2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / test-595.cs
blob42ff7b290079c6d59d1d58352c68ef903b5c3f55
1 using System;
3 public struct SymbolId
7 public interface IAttributesCollection
9 object this [SymbolId name] { get; set; }
12 class AttributesCollection : IAttributesCollection
14 public object this [SymbolId name] {
15 get { return null; }
16 set { }
20 class Program
22 public static object SetDictionaryValue (object self, SymbolId name, object value)
24 IAttributesCollection dict = new AttributesCollection ();
25 return dict [name] = value;
28 static void Main ()
30 SetDictionaryValue (null, new SymbolId (), 1);