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.
Name of destructor must match name of class
The name of a destructor must be the class name preceded by a tilde (~).
The following sample generates CS0574:
// CS0574.cs
namespace x
{
public class iii
{
~iiii() // CS0574
{
}
public static void Main()
{
}
}
}