[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-595.cs
blobe864ba5d97a23438f075d76a69507204273dfdf5
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 public static void Main ()
30 SetDictionaryValue (null, new SymbolId (), 1);