[source,vbnet,diff-id=1,diff-type=noncompliant]
----
Class Sample
    Protected Overrides Sub Finalize()
        Throw New NotImplementedException() ' Noncompliant: Finalize method throws an exception
    End Sub
End Class
----
