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