CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Predicate Cached::alwaysNullMethod

Holds if method m always returns null.

Import path

import semmle.code.cil.CallableReturns
predicate alwaysNullMethod(Method m)