Click here to Skip to main content
15,897,187 members
Articles / Programming Languages / C#

Safelly calling virtuall members from constructors...

23 Mar 2015CPOL1 min read 18K   33   5  
Many programmers know what calling virtual members from not sealed class constructor may cause runtime error, because of some members used in virtuals could be not initialized. I will show a simple way to call virtuals safelly from constructors of inherited classes.
This is an old version of the currently published tip/trick.

Only logged in members can view this content

Please go to the C# Table of Contents to view the list of available articles in this section.