Show/Hide Toolbars

XSharp

Introducing a 'Finalize' method can interfere with destructor invocation. Did you intend to declare a destructor?

 

This warning occurs when you create a class with a method whose signature is public virtual void Finalize.

 

If such a class is used as a base class and if the deriving class defines a destructor, the destructor will override the base class Finalize method, not Finalize.

Example

 

The following sample generates XS0465.

 

 

// XS0465.prg  
// compile with: /target:library