What is the C# equivalent of VB.Net's
VB Code:
MyBase.New(...)
??
I'm inheriting from ApplicationException and the normal practice in VB.net is to call the the base class constructor from within the derived class's constructor.
At the moment I have this, where I have shown the line I want to change...
Is this even the way you do this in C#? *noobz*Code:public class SudokuGridIllegalException : ApplicationException { //constructor of my derived class public SudokuGridIllegalException(String message) { // call the base's constructor /* wrong */ mybase.New(message); } }![]()




Reply With Quote