W
Wolfgang Hanke
Hello,
I want to extend multiple Controls like TextBox, Label, ComboBox etc. with
the same new featureset (for Example all need a Method getSomething())
Because I cant alter their Base-Class I have to write one new class for each
Control like MyTextBox, MyLabel, MyComboBox implementing
IMyControlInterface.
The Code for each Control is exactly the same but C# offers no way to
"include" some code.
Do I really have to write all the code into every Class? Isnt their an
elegant way to achieve this?
Any help greatly appreciated!
Best regards,
Wolfgang Hanke
I want to extend multiple Controls like TextBox, Label, ComboBox etc. with
the same new featureset (for Example all need a Method getSomething())
Because I cant alter their Base-Class I have to write one new class for each
Control like MyTextBox, MyLabel, MyComboBox implementing
IMyControlInterface.
The Code for each Control is exactly the same but C# offers no way to
"include" some code.
Do I really have to write all the code into every Class? Isnt their an
elegant way to achieve this?
Any help greatly appreciated!
Best regards,
Wolfgang Hanke