Inheriting a class or implementing a interface...
-
Hi, I have a public partial class "con_param_tou : UserControl" (standard userControl) But i want to inherit or implement a interface of a class that i build. So i want to maintain the designer mode of standard User Control but i also want to implement or inherit one of my classes. My class is currently declared as public interface base_param_interface (because I know that i cannot inherit multiple classes... So what I want to do is inherit UserControl and implement one of my interfaces which has a couple of public properties and 2,3 functions... How do I do that? Thanks in advance!
-
Hi, I have a public partial class "con_param_tou : UserControl" (standard userControl) But i want to inherit or implement a interface of a class that i build. So i want to maintain the designer mode of standard User Control but i also want to implement or inherit one of my classes. My class is currently declared as public interface base_param_interface (because I know that i cannot inherit multiple classes... So what I want to do is inherit UserControl and implement one of my interfaces which has a couple of public properties and 2,3 functions... How do I do that? Thanks in advance!
Just change your class definition to read
class YourClass : SomeBaseClass, ISomeInterface
{
// stuff goes here
}Cheers, Vıkram.
I don't suffer from insanity, I enjoy every moment of it.