I am disassembling some C # applications and I am trying to reconstruct the source code. I am disassembling the application along with the required DLLs.
I keep coming across this line base..ctor();
which gives me an error. The line occurs in some voids with in some subclasses of Stream
and Exception
.
Does anyone has any idea what the code should is? I am thinking the disassembler messed it up some what and it is clearly invalid code. So does anyone know what's it is meant to mean and how can I change the line so it works?
Here is the code of the one of the subclasses. Occurs in:
[Guid ( ] public class zlibexception:exception{ public Zlibexception () { base . ctor (); return ; public zlibexception (string Span style= "color: #000000;" > s) { base . ctor (); return ; }}
It should be:
[Guid ("ebc25cf6-9120-4283-b972-0e5520d0000e")] Public class zlibexception:exception{ publicbase() { return ; } Public Zlibexception (stringbase() { return; }}
Which calls the constructor with that signature on the base implementation of this class.
But by default the. NET CLR calls the base, blank constructor for your, so you don ' t actually need the: base()
Original address: Http://stackoverflow.com/questions/18150628/what-is-base-ctor-in-c
What is base. ctor (); In C #?