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

Predicate Cached::assemblyIsStubImpl

A simple heuristic for determining whether an assembly is a reference assembly where the method bodies have dummy implementations. Look at the average number of instructions per method.

Import path

import semmle.code.cil.Stubs
predicate assemblyIsStubImpl(Assembly asm)