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

Module Chaining

Provides detection of callables designed for chaining.

For example stringBuilder.Append(x).Append(y) is a chained call, where the Append method is chained.

Import path

import semmle.code.csharp.Chaining

Imports

csharp

The default C# QL library.

Predicates

designedForChaining

Holds if callable c is designed for chaining. The following must be fulfilled: