17 lines
195 B
C#
17 lines
195 B
C#
|
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);
|
||
|
}
|
||
|
}
|