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

Module Conversion

INTERNAL: Do not use.

Provides definitions related to implicit type conversions.

The definitions are based on the C# Language Specification 5.0, with references to the relevant sections in the specification.

Do not use the predicates in this library directly; use Type.isImplicitlyConvertibleTo(Type) instead.

Import path

import semmle.code.csharp.Conversion

Imports

Cached
Type

Provides classes for types.

Predicates

convBoxing

INTERNAL: Do not use.

convConversionOperator

INTERNAL: Do not use.

convIdentity

INTERNAL: Do not use.

convNullableType

INTERNAL: Do not use.

convNumeric

INTERNAL: Do not use.

convRefType

INTERNAL: Do not use.

defaultNullConversion

Holds if fromType is NullType, and toType is a type that can represent the null value, such as a reference type, Nullable<T> or a type parameter with constraints that restrict it to a reference type.

implicitConversion

INTERNAL: Do not use.