Base:
property
Type
System.Linq.Expressions.Expression.Type
1 override of Type
System.Linq.Expressions (1)
System\Linq\Expressions\ConstantExpression.cs (1)
66
public sealed override Type
Type
{ get; }
24 references to Type
Microsoft.ML.Core (12)
Utilities\FuncInstanceMethodInfo1`2.cs (2)
73
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Arguments[0]).
Type
== typeof(Type), nameof(expression), "Unexpected expression form");
80
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Object).
Type
== typeof(MethodInfo), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`3.cs (2)
74
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Arguments[0]).
Type
== typeof(Type), nameof(expression), "Unexpected expression form");
81
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Object).
Type
== typeof(MethodInfo), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`4.cs (2)
75
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Arguments[0]).
Type
== typeof(Type), nameof(expression), "Unexpected expression form");
82
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Object).
Type
== typeof(MethodInfo), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo2`4.cs (2)
75
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Arguments[0]).
Type
== typeof(Type), nameof(expression), "Unexpected expression form");
82
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Object).
Type
== typeof(MethodInfo), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`3.cs (2)
74
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Arguments[0]).
Type
== typeof(Type), nameof(expression), "Unexpected expression form");
81
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Object).
Type
== typeof(MethodInfo), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`4.cs (2)
75
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Arguments[0]).
Type
== typeof(Type), nameof(expression), "Unexpected expression form");
82
Contracts.CheckParam(((ConstantExpression)methodCallExpression.Object).
Type
== typeof(MethodInfo), nameof(expression), "Unexpected expression form");
System.Linq.Expressions (12)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
562
EmitConstant(node.Value, node.
Type
);
System\Linq\Expressions\Compiler\VariableBinder.cs (2)
60
if (ILGen.CanEmitConstant(node.Value, node.
Type
))
65
_constants.Peek().AddReference(node.Value!, node.
Type
);
System\Linq\Expressions\ConstantExpression.cs (1)
86
/// and <see cref="ConstantExpression.
Type
"/> properties set to the specified values. .
System\Linq\Expressions\DebugViewWriter.cs (6)
459
else if ((value is string) && node.
Type
== typeof(string))
463
else if ((value is char) && node.
Type
== typeof(char))
467
else if ((value is int) && node.
Type
== typeof(int)
468
|| (value is bool) && node.
Type
== typeof(bool))
474
string? suffix = GetConstantValueSuffix(node.
Type
);
482
Out($".Constant<{node.
Type
}>({value})");
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
101
public Type Type => _node.
Type
;
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
347
_instructions.EmitLoad(node.Value, node.
Type
);