6 class Foo
: IFoo
<string>
9 public Foo (string bar
)
13 public string Bar { get { return bar; }
}
18 public static int Main ()
20 string bar
= "Who is John Galt?";
21 IFoo
<string> foo
= new Foo(bar
);
22 IFoo
<object> foo2
= foo
;
23 if (!foo2
.Bar
.Equals (bar
))