Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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()
{
}
}