If I inherit from a base class and want to pass something from the constructor of the inherited class to the constructor of the base class, how do I do that?
public class MyExceptionClass : Exception
{
public MyExceptionClass(string message,
Exception innerException): base(message, innerException)
{
//other stuff here
}
}
You can pass inner exception to one of the constructors.