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

Module Types

Provides classes representing various types.

Import path

import semmle.code.cil.Types

Classes

ArrayType

An array.

BoolType

The type System.Boolean.

ByteType

The type System.Byte.

CharType

The type System.Char.

Class

A class.

DecimalType

The type System.Decimal.

DoubleType

The type System.Double.

Enum

An enum.

FloatType

The type System.Single.

FloatingPointType

A floating point type. Either single precision (FloatType) or double precision (DoubleType).

FunctionPointerType

A function pointer type, for example

IntPtrType

The type System.IntPtr.

IntType

The type System.Int32.

IntegralType

An integral numeric type. Either a signed integral type (SignedIntegralType) or an unsigned integral type (UnsignedIntegralType).

Interface

An interface.

LongType

The type System.Int64.

NumericType

A primitive numeric type. Either an integral type (IntegralType) or a floating point type (FloatingPointType).

ObjectType

The type System.Object.

PointerType

A pointer type.

PrimitiveType

A primitive type, built into the runtime.

Record

A record.

SByteType

The type System.SByte.

ShortType

The type System.Int16.

SignedIntegralType

A signed integral type.

StringType

The type System.String.

SystemType

The type System.Type.

TypeParameter

A type parameter.

UIntPtrType

The type System.UIntPtr.

UIntType

The type System.UInt32.

ULongType

The type System.UInt64.

UShortType

The type System.UInt16.

UnsignedIntegralType

An unsigned integral type.

ValueOrRefType

A value or reference type.

VoidType

The void type, System.Void.