17 lines
195 B
C#
Raw Normal View History

using System;
interface IFoo
{
bool Equals (object o);
}
class Hello : IFoo
{
public static void Main ()
{
IFoo f = new Hello ();
int i = f.GetHashCode ();
bool b = f.Equals (f);
}
}