V
Vit
Hi.
I'd like to pass as a parameter of class method reference
to ListControl (ListBox or ComboBox).
Here is my call:
public DoSomething(ListControl lc){}
It's ok with that, but lc does not have methods like
lc.BeginUpdate;
lc.EndUpdate
but ListBox and ComboBox does have such a methods.
I don't like two methods like
public DoSomething(ListBox lc){};
public DoSomething(ComboBox lc){};
Is there a way to do that in one method and have abilities
to use .BeginUpdate and .EndUpdate ?
I'd like to pass as a parameter of class method reference
to ListControl (ListBox or ComboBox).
Here is my call:
public DoSomething(ListControl lc){}
It's ok with that, but lc does not have methods like
lc.BeginUpdate;
lc.EndUpdate
but ListBox and ComboBox does have such a methods.
I don't like two methods like
public DoSomething(ListBox lc){};
public DoSomething(ComboBox lc){};
Is there a way to do that in one method and have abilities
to use .BeginUpdate and .EndUpdate ?