2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-exmethod-16.cs
blob1f07db46b72eb59be20e9b000620b2180feb7266
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 static void Main (string [] args)
32 Program p = new Program ();
33 p [0].Extension ();
34 p.Property.Extension ();
35 p.e.Extension ();