How do I execute some code in a superclass after all the subclasses have been constructed?

Posted by Thiado de Arruda on Stack Overflow See other posts from Stack Overflow or by Thiado de Arruda
Published on 2010-04-30T19:41:34Z Indexed on 2010/04/30 19:57 UTC
Read the original article Hit count: 141

Filed under:
|
|
|

Is there a way to do this in C#? I know that the subclass will call the superclass constructor before calling its own constructor, but what If I have some code on the superclass that should only be executed after all the subclasses constructors have been called?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET