K
Kiran
Hi,
I am new to dotNet, as my background is from Delphi, I am always looking
for the way to do it that way sorry abt that.
I was looking for a way to delegate the interface supported by my class to
one of the contained class which we can do in Delphi using "implements"
keyword. OK to be more specific here is an example
Class CX : IX; and
now I have a class CY which is supposed to provide 2 interfaces IX & IY
class CY : IX, IY
{
public CX myCX;
.........
}
I want IX to be handled by a contained instance of CX in CY. but I do not
want to create a wrapper functions like this
........
public void MyIXMethod()
{
myCX.MyIXMethod();
}
.........
In Delphi I could simply delegate IX interface to myCX... is there any way
to do the same in C#.
regards
Kiran
I am new to dotNet, as my background is from Delphi, I am always looking
for the way to do it that way sorry abt that.
I was looking for a way to delegate the interface supported by my class to
one of the contained class which we can do in Delphi using "implements"
keyword. OK to be more specific here is an example
Class CX : IX; and
now I have a class CY which is supposed to provide 2 interfaces IX & IY
class CY : IX, IY
{
public CX myCX;
.........
}
I want IX to be handled by a contained instance of CX in CY. but I do not
want to create a wrapper functions like this
........
public void MyIXMethod()
{
myCX.MyIXMethod();
}
.........
In Delphi I could simply delegate IX interface to myCX... is there any way
to do the same in C#.
regards
Kiran