You have to caste them to an object of the same type of the interface. From
your example, you would do this:
t mainObject = new t();
Console.WriteLine(((i1) t).f());
or
t mainObject = new t();
i2 two = t;
Console.WriteLine(two.f());

Signature
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com
> Hi,
>
[quoted text clipped - 41 lines]
>
> }
Bhuwan Bhaskar - 30 Oct 2007 08:18 GMT
Thanks Andrew, it works with little change,
> i2 two = t;
i2 two = mainObject;
Thanks
Bhuwan
> You have to caste them to an object of the same type of the interface.
> From your example, you would do this:
[quoted text clipped - 53 lines]
>>
>> }