[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-exmethod-16.cs
blob8558bc6feb7f6c8121478dac939b074b4e775783
1 using System;
3 static class Rocks
5 public static bool Extension (this string self)
7 return true;
10 public static bool Extension (this D self)
12 return true;
16 delegate string D ();
18 class Program
20 event D e;
22 public string this [int index] {
23 get { return "HelloWorld"; }
26 public string Property {
27 get { return "a"; }
30 public static void Main (string [] args)
32 Program p = new Program ();
33 p [0].Extension ();
34 p.Property.Extension ();
35 p.e.Extension ();