2 <clause number="8.7.9" title="Destructors" informative="true">
3 <paragraph>A destructor is a member that implements the actions required to destruct an instance of a class. Destructors cannot have parameters, they cannot have accessibility modifiers, and they cannot be called explicitly. The destructor for an instance is called automatically during garbage collection. </paragraph>
4 <paragraph>The example <code_example><![CDATA[
9 public Point(double x, double y) {
14 Console.WriteLine("Destructed {0}", this);
16 public override string ToString() {
17 return string.Format("({0}, {1})", x, y);
20 ]]></code_example>shows a Point class with a destructor. </paragraph>