[source,csharp,diff-id=1,diff-type=noncompliant]
----
class MyClass
{
    ~MyClass()
    {
        throw new NotImplementedException(); // Noncompliant: finalizer throws an exception
    }
}
----