My project(C# mvc) classes inherit one base class, for some reason I need to create constructor on base class having parameters like bellow:
Public class MyBase
{
Public MyBase(string param1, string param2, string param3)
{
}
}
Public class MyClass : MyBase
{
}
Now problem is that, on each derived class need to defined base class constructor with parameter.If I not defined base class constructor in derived class then show me error” parameter less constructor ” it is painfull to write code on each class for base class constructor,is there any way to avoid this work