I am looking this code
interface IEven
{
bool IsOdd(int x);
bool IsEven(int x);
}
class MyClass : IEven
{
bool IEven.IsOdd(int x)
{
if((x%2) != 0) return true;
else return false;
}
public bool IsEven(int x)
{
IEven o = this;
return !o.IsOdd(x);
}
}
which explains difference between explicit and implicit interface implementation.
How to write interface reference to the invoking object without this?