Table of Contents

Class ExpressionInstances

Namespace
LinqToDB.Expressions
Assembly
linq2db.dll

Contains pre-created instances of ConstantExpression object for often used constants. Using those instances we avoid unnecessary allocations of same constant instances and avoid boxing for value constants (e.g. booleans, integers).

public static class ExpressionInstances
Inheritance
ExpressionInstances

Fields

Constant0

public static readonly ConstantExpression Constant0

Field Value

ConstantExpression

Constant1

public static readonly ConstantExpression Constant1

Field Value

ConstantExpression

Constant26

public static readonly ConstantExpression Constant26

Field Value

ConstantExpression

Constant29

public static readonly ConstantExpression Constant29

Field Value

ConstantExpression

False

public static readonly ConstantExpression False

Field Value

ConstantExpression

HashMultiplier

public static readonly Expression HashMultiplier

Field Value

Expression

NullIDataContext

public static readonly Expression NullIDataContext

Field Value

Expression

True

public static readonly ConstantExpression True

Field Value

ConstantExpression

UntypedNull

public static readonly ConstantExpression UntypedNull

Field Value

ConstantExpression