I have made a C# project and i put try en catch around the functions to do the error-handling. When an error is thrown i call a function, with Exception exc as an argument, to get the same errorpage every time an error is thrown.
In visual basic it was possible to get the number of the error that was thrown by: Err.Number
My question is whether this is possible in C# too? And how do you do this? Because the Exception exc hasn't got a property to do it.