70 references to GetTypeCode
System.Linq.Expressions (70)
System\Dynamic\Utils\TypeUtils.cs (12)
50
switch (type.
GetTypeCode
())
111
switch (type.
GetTypeCode
())
136
switch (type.
GetTypeCode
())
158
switch (type.
GetTypeCode
())
174
switch (type.
GetTypeCode
())
196
switch (type.
GetTypeCode
())
213
switch (type.
GetTypeCode
())
599
switch (type.
GetTypeCode
())
740
TypeCode tcSource = source.
GetTypeCode
();
741
TypeCode tcDest = destination.
GetTypeCode
();
973
internal static bool IsUnsigned(this Type type) => IsUnsigned(GetNonNullableType(type).
GetTypeCode
());
991
internal static bool IsFloatingPoint(this Type type) => IsFloatingPoint(GetNonNullableType(type).
GetTypeCode
());
System\Linq\Expressions\Compiler\ILGen.cs (9)
67
switch (type.
GetTypeCode
())
120
switch (type.
GetTypeCode
())
171
switch (type.
GetTypeCode
())
217
switch (type.
GetTypeCode
())
379
switch (type.GetNonNullableType().
GetTypeCode
())
499
switch (type.
GetTypeCode
())
619
TypeCode tc = typeTo.
GetTypeCode
();
620
TypeCode tf = typeFrom.
GetTypeCode
();
1058
switch (type.
GetTypeCode
())
System\Linq\Expressions\Compiler\LambdaCompiler.Binary.cs (2)
157
if (leftType.
GetTypeCode
() == TypeCode.Boolean)
270
switch (resultType.
GetTypeCode
())
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (2)
288
TypeCode code = Type.
GetTypeCode
();
345
switch (valueType.
GetTypeCode
())
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (1)
252
switch (type.
GetTypeCode
())
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
1101
return instance != null && instance.Type.IsValueType && instance.Type.
GetTypeCode
() == TypeCode.Object;
System\Linq\Expressions\Interpreter\AddInstruction.cs (2)
166
return type.GetNonNullableType().
GetTypeCode
() switch
302
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\AndInstruction.cs (1)
175
type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
45
switch (t.
GetTypeCode
())
89
switch (t.
GetTypeCode
())
133
switch (t.
GetTypeCode
())
System\Linq\Expressions\Interpreter\DecrementInstruction.cs (1)
158
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\DivInstruction.cs (1)
166
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\EqualInstruction.cs (3)
514
switch (type.GetNonNullableType().
GetTypeCode
())
528
Debug.Assert(type.GetNonNullableType().
GetTypeCode
() == TypeCode.Double);
534
switch (type.GetNonNullableType().
GetTypeCode
())
System\Linq\Expressions\Interpreter\ExclusiveOrInstruction.cs (1)
163
type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\GreaterThanInstruction.cs (2)
282
return type.GetNonNullableType().
GetTypeCode
() switch
300
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\GreaterThanOrEqualInstruction.cs (2)
282
return type.GetNonNullableType().
GetTypeCode
() switch
300
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\IncrementInstruction.cs (1)
158
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\LeftShiftInstruction.cs (1)
163
type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\LessThanInstruction.cs (2)
281
return type.GetNonNullableType().
GetTypeCode
() switch
299
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\LessThanOrEqualInstruction.cs (2)
282
return type.GetNonNullableType().
GetTypeCode
() switch
300
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
1158
TypeCode from = nonNullableFrom.
GetTypeCode
();
1159
TypeCode to = nonNullableTo.
GetTypeCode
();
1553
TypeCode switchType = node.SwitchValue.Type.
GetTypeCode
();
System\Linq\Expressions\Interpreter\ModuloInstruction.cs (1)
166
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\MulInstruction.cs (2)
166
return type.GetNonNullableType().
GetTypeCode
() switch
303
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\NegateInstruction.cs (2)
107
return type.GetNonNullableType().
GetTypeCode
() switch
183
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\NotEqualInstruction.cs (3)
496
switch (type.GetNonNullableType().
GetTypeCode
())
510
Debug.Assert(type.GetNonNullableType().
GetTypeCode
() == TypeCode.Double);
516
switch (type.GetNonNullableType().
GetTypeCode
())
System\Linq\Expressions\Interpreter\NotInstruction.cs (1)
172
type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\OrInstruction.cs (1)
178
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\RightShiftInstruction.cs (1)
164
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\SubInstruction.cs (2)
166
return type.GetNonNullableType().
GetTypeCode
() switch
302
return type.GetNonNullableType().
GetTypeCode
() switch
System\Linq\Expressions\Interpreter\TypeOperations.cs (3)
357
return t.
GetTypeCode
() switch
423
switch (_t.
GetTypeCode
())
456
Debug.Assert(_t.
GetTypeCode
() == TypeCode.Boolean);
System\Linq\Expressions\Interpreter\Utilities.cs (1)
101
switch (type.
GetTypeCode
())
System\Linq\Expressions\ParameterExpression.cs (1)
30
switch (type.
GetTypeCode
())