FxCopy and Partially Constructed Objects

I mentioned last time the thread about partially constructed object.  I tried running FxCop 1.2.1 on my little test project. Gives me:

Virtual methods defined on the class should not be called from constructors. If a derived class has overridden the method, the derived class version will be called (before the derived class constructor is called).

For me this is pretty cool.  I haven't been using FxCopy much but I plan to use it a lot more.  In my C++ lint was my friend and this is part of what I need to keep me from getting into too much trouble.

Published Friday, June 20, 2003 6:57 AM by cloudycity

Comments

# Quiz: Virtual Methods - Answer!

Wednesday, August 11, 2004 2:27 AM by TrackBack

Leave a Comment

(required) 
(required) 
(optional)
(required)