CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds try-finally statements without a catch clause.

import csharp

from TryStmt t
where
  exists(t.getFinally()) and
  not exists(t.getACatchClause())
select t