a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
313 B
C#
29 lines
313 B
C#
using System;
|
|
using System.Reflection;
|
|
|
|
interface IA
|
|
{
|
|
string this[int idx] { get; set; }
|
|
}
|
|
|
|
[DefaultMember ("Main")]
|
|
public class Foo : IA
|
|
{
|
|
string bar;
|
|
|
|
public static void Main ()
|
|
{
|
|
Console.WriteLine ("foo");
|
|
}
|
|
|
|
string IA.this[int idx] {
|
|
get {
|
|
return "foo";
|
|
}
|
|
set {
|
|
bar = value;
|
|
}
|
|
}
|
|
}
|
|
|