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

Predicate Cached::implicitConversionRestricted

INTERNAL: Do not use.

Holds if there exists an implicit conversion from fromType to toType.

6.1: Implicit type conversions.

The following conversions are included:

  • Identity conversions
  • Implicit numeric conversions
  • Implicit nullable conversions
  • Implicit reference conversions
  • Boxing conversions

Import path

import semmle.code.csharp.Conversion
predicate implicitConversionRestricted(Type fromType, Type toType)