This documentation is archived and is not being maintained.

Compiler Error CS0250

Visual Studio 2008

Do not directly call your base class Finalize method. It is called automatically from your destructor.

A program cannot attempt to force cleanup of base class resources.

See Finalize Methods and Destructors for more information.

The following sample generates CS0250

// CS0250.cs
class B
{
}

class C : B
{
   ~C()
   {
      base.Finalize();   // CS0250
   }

   public static void Main()
   {
   }
}
Show: