204 references to Constant
System.Activities (5)
System\Activities\Expressions\MethodCallExpressionHelper.cs (4)
36
Expression.Call(typeof(Convert).GetMethod("ChangeType", new Type[] { typeof(object), typeof(Type) }), Expression.ArrayIndex(objectArray, Expression.
Constant
(i)), Expression.Constant(variable.Type, typeof(Type))),
42
Expression.Convert(Expression.ArrayIndex(objectArray, Expression.
Constant
(i)), variable.Type)));
48
assignVariablesBackExpressions.Add(Expression.Assign(Expression.ArrayAccess(objectArray, Expression.
Constant
(i)),
53
assignVariablesBackExpressions.Add(Expression.Assign(Expression.ArrayAccess(objectArray, Expression.
Constant
(i)),
System\Activities\Expressions\OperatorPermissionHelper.cs (1)
43
Expression demandExpression = Expression.Call(Expression.
Constant
(reflectionMemberAccessPermission), "Demand", null, null);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (2)
537
System.Linq.Expressions.Expression value = System.Linq.Expressions.Expression.Call(s, getPropertyValueMethodInfo, System.Linq.Expressions.Expression.
Constant
(binder.Name));
545
System.Linq.Expressions.Expression valueExp = System.Linq.Expressions.Expression.Call(s, setPropertyValueMethodInfo, System.Linq.Expressions.Expression.
Constant
(binder.Name), objectValue);
System.Core (42)
Microsoft\Scripting\Actions\BindingRestrictions.cs (5)
41
public static readonly BindingRestrictions Empty = new CustomRestriction(Expression.
Constant
(true));
187
return Expression.
Constant
(true);
292
Expression.
Constant
(null)
302
Expression.
Constant
(new WeakReference(_instance)),
308
Expression.NotEqual(temp, Expression.
Constant
(null)),
Microsoft\Scripting\Actions\CallSite.cs (2)
494
Expression.Assign(index, Expression.
Constant
(0)),
616
body.Add(Expression.Assign(index, Expression.
Constant
(0)));
Microsoft\Scripting\Actions\DynamicMetaObjectBinder.cs (2)
183
Expression.NotEqual(expr, Expression.
Constant
(null)),
193
Expression.NotEqual(expr, Expression.
Constant
(null)),
Microsoft\Scripting\Actions\DynamicObject.cs (5)
396
Expression.
Constant
(i)
514
Expression.Equal(resultMO.Expression, Expression.
Constant
(null)),
525
Expression.
Constant
(convertFailed),
528
Expression.Equal(resultMO.Expression, Expression.
Constant
(null)),
529
Expression.
Constant
("null"),
Microsoft\Scripting\Actions\ExpandoObject.cs (9)
703
Expression.
Constant
(index),
704
Expression.
Constant
(name),
705
Expression.
Constant
(ignoreCase),
770
Expression.
Constant
(index),
772
Expression.
Constant
(binder.Name),
773
Expression.
Constant
(binder.IgnoreCase)
789
Expression.
Constant
(index),
790
Expression.
Constant
(binder.Name),
791
Expression.
Constant
(binder.IgnoreCase)
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (4)
85
return Expression.Block(Expression, Expression.
Constant
(cType == _typeOperand.GetNonNullableType()));
143
Expression.ReferenceNotEqual(value, Expression.
Constant
(null)),
155
return Expression.
Constant
(false);
157
return Expression.
Constant
(_typeOperand.GetNonNullableType() == ce.Value.GetType());
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (2)
148
Expression.
Constant
(indexes)
157
return Expression.Field(Expression.
Constant
(box), "Value");
Microsoft\Scripting\Compiler\LambdaCompiler.cs (1)
317
return Expression.Field(Expression.
Constant
(new StrongBox<T>(default(T))), "Value");
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (5)
589
initializers.Add(Expression.ElementInit(add, t, Expression.
Constant
(i)));
594
cases.Add(Expression.SwitchCase(node.Cases[i].Body, Expression.
Constant
(i)));
610
Expression.
Constant
(initializers.Count)
646
Expression.Assign(switchIndex, Expression.
Constant
(nullCase)),
650
Expression.Assign(switchIndex, Expression.
Constant
(-1))
System\Linq\IQueryable.cs (6)
438
new Expression[] { source.Expression, Expression.
Constant
(count) }
475
new Expression[] { source.Expression, Expression.
Constant
(count) }
922
new Expression[] { source.Expression, Expression.
Constant
(index) }
933
new Expression[] { source.Expression, Expression.
Constant
(index) }
1661
new Expression[] { source.Expression, Expression.
Constant
(seed), Expression.Quote(func) }
1676
new Expression[] { source.Expression, Expression.
Constant
(seed), Expression.Quote(func), Expression.Quote(selector) }
System\Linq\SequenceQuery.cs (1)
53
this.expression = Expression.
Constant
(this);
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (2)
537
System.Linq.Expressions.Expression value = System.Linq.Expressions.Expression.Call(s, getPropertyValueMethodInfo, System.Linq.Expressions.Expression.
Constant
(binder.Name));
545
System.Linq.Expressions.Expression valueExp = System.Linq.Expressions.Expression.Call(s, setPropertyValueMethodInfo, System.Linq.Expressions.Expression.
Constant
(binder.Name), objectValue);
System.Data.Entity (77)
System\Data\Common\Internal\Materialization\CompensatingCollection.cs (1)
42
_expression = Expression.
Constant
(source);
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (4)
274
result = Expression.
Constant
(Translator.Compile(body.Type, body));
377
Expression.
Constant
(userMaterializationFunc),
453
Expression.
Constant
(userMaterializationFunc),
535
Expression.MakeBinary(ExpressionType.ArrayIndex, _values, Expression.
Constant
(_initializationArguments.Count - 1)),
System\Data\Common\Internal\Materialization\Translator.cs (27)
1018
Expression result = Emit_EnsureType(Expression.Call(Shaper_Reader, DbDataReader_GetValue, Expression.
Constant
(ordinal)), type);
1028
Expression result = Expression.Call(Shaper_Reader, DbDataReader_IsDBNull, Expression.
Constant
(ordinal));
1054
Expression.
Constant
(ordinal), Expression.
Constant
(propertyName), Expression.
Constant
(typeName), Expression.Constant(primitiveColumnType, typeof(PrimitiveTypeKind)));
1058
result = Expression.Call(Shaper_Parameter, Shaper_GetPropertyValueWithErrorHandling.MakeGenericMethod(propertyType), Expression.
Constant
(ordinal), Expression.
Constant
(propertyName), Expression.
Constant
(typeName));
1074
result = Expression.Call(Shaper_Parameter, Shaper_GetSpatialColumnValueWithErrorHandling.MakeGenericMethod(resultType), Expression.
Constant
(ordinal), Expression.Constant(primitiveColumnType, typeof(PrimitiveTypeKind)));
1078
result = Expression.Call(Shaper_Parameter, Shaper_GetColumnValueWithErrorHandling.MakeGenericMethod(resultType), Expression.
Constant
(ordinal));
1089
Expression result = Expression.Call(Shaper_Parameter, Shaper_GetGeographyColumnValue, Expression.
Constant
(ordinal));
1099
Expression result = Expression.Call(Shaper_Parameter, Shaper_GetGeometryColumnValue, Expression.
Constant
(ordinal));
1109
Expression result = Emit_EnsureType(Expression.ArrayIndex(Shaper_State, Expression.
Constant
(stateSlotNumber)), type);
1119
Expression result = Expression.Call(Shaper_Parameter, Shaper_SetState.MakeGenericMethod(value.Type), Expression.
Constant
(stateSlotNumber), value);
1129
Expression result = Expression.Call(Shaper_Parameter, Shaper_SetStatePassthrough.MakeGenericMethod(value.Type), Expression.
Constant
(stateSlotNumber), value);
1334
constructEntity = Expression.Call(Expression.
Constant
(proxyTypeInfo), EntityProxyTypeInfo_SetEntityWrapper, constructEntity);
1434
BuildExpressionToGetRecordState(columnMap, null, null, Expression.
Constant
(true)),
1461
discriminatorMatches = Expression.Call(Expression.
Constant
(TrailingSpaceStringComparer.Instance), IEqualityComparerOfString_Equals, discriminatorConstant, discriminatorReader);
1511
Expression.
Constant
(typeChoice.Key),
1521
Expression.
Constant
(columnMap.Discriminate),
1619
Expression.
Constant
(stateSlotNumber),
1620
Expression.
Constant
(ordinal),
1631
Expression.
Constant
(stateSlotNumber),
1749
result = Expression.Call(Shaper_Parameter, handleFullSpanCollectionMethod, result, expressionToGetCoordinator, Expression.
Constant
(targetMember));
1757
result = Expression.Call(Shaper_Parameter, handleRelationshipSpanMethod, result, spannedResultReader, Expression.
Constant
(targetMember));
1763
result = Expression.Call(Shaper_Parameter, handleFullSpanElementMethod, result, spannedResultReader, Expression.
Constant
(targetMember));
2087
result = Expression.Call(Shaper_Reader, readerMethod, Expression.
Constant
(ordinal));
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
245
Expression includeCall = Expression.Call(Expression.
Constant
(sourceQuery), includeMethod, new Expression[] { Expression.Constant(includePath, typeof(string)) });
System\Data\Objects\ELinq\Funcletizer.cs (2)
59
_rootContextExpression = Expression.
Constant
(_rootContext);
664
Expression wrappedExpression = Expression.Invoke(Expression.
Constant
(method), this._funcletizedExpression);
System\Data\Objects\ELinq\InitializerFacet.cs (2)
486
shaper, owner, coordinator, Expression.
Constant
(_navigationProperty.RelationshipType.FullName), Expression.
Constant
(_navigationProperty.ToEndMember.Name));
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (3)
501
Expression.
Constant
(0),
504
Expression.
Constant
(1),
505
Expression.
Constant
(-1)));
System\Data\Objects\EntityFunctions.cs (32)
40
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
54
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
68
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
82
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
96
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
110
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
124
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
138
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
152
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
166
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
180
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
194
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
208
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
222
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
236
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
250
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
264
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
278
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
292
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
306
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
320
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
334
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
348
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
362
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
376
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
390
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
404
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
418
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
432
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
446
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
460
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
474
return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(collection)));
System\Data\Objects\ObjectQuery_TResultType.cs (3)
127
retExpr = Expression.
Constant
(this);
136
retExpr = Expression.Call(retExpr, mergeAsMethod, Expression.
Constant
(this.QueryState.UserSpecifiedMergeOption.Value));
144
retExpr = Expression.Call(retExpr, includeSpanMethod, Expression.
Constant
(this.QueryState.Span));
System\Data\Objects\SqlClient\SqlFunctions.cs (2)
40
return ((IQueryable)objectQuerySource).Provider.Execute<System.Int32?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(arg)));
54
return ((IQueryable)objectQuerySource).Provider.Execute<System.Int32?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.
Constant
(arg)));
System.Data.Linq (29)
ChangeDirector.cs (10)
239
return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type, resultSelector.Body.Type }, Expression.
Constant
(item.Current), resultSelector);
242
return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type }, Expression.
Constant
(item.Current));
336
return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.Body.Type }, Expression.
Constant
(tracked.Current), check, resultSelector);
339
return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.Body.Type }, Expression.
Constant
(tracked.Current), resultSelector);
343
return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type }, Expression.
Constant
(tracked.Current), check);
346
return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type }, Expression.
Constant
(tracked.Current));
355
this.GetMemberExpression(Expression.
Constant
(tracked.Current), mt.VersionMember.Member)
391
return Expression.Call(typeof(DataManipulation), "Delete", new Type[] { rowTypeRoot.Type }, Expression.
Constant
(original), check);
394
return Expression.Call(typeof(DataManipulation), "Delete", new Type[] { rowTypeRoot.Type }, Expression.
Constant
(original));
402
Expression pred = Expression.Lambda(Expression.Equal(p, Expression.
Constant
(tracked.Current)), p);
DataContext.cs (4)
819
return Expression.Call(Expression.
Constant
(instance), methodInfo, args);
821
return Expression.Call(Expression.
Constant
(instance), methodInfo);
1132
get { return Expression.
Constant
(this); }
1188
return ((IEnumerable<TEntity>)this.context.Provider.Execute(Expression.
Constant
(this)).ReturnValue).GetEnumerator();
DataServices.cs (3)
239
Expression thisSource = Expression.
Constant
(context.GetTable(rootType));
246
Expression otherSource = Expression.
Constant
(context.GetTable(association.OtherType.InheritanceRoot.Type));
421
Expression.ArrayIndex(p, Expression.
Constant
(i)),
SqlClient\Query\Funcletizer.cs (1)
59
return Expression.Invoke(Expression.
Constant
(Expression.Lambda(e).Compile()));
SqlClient\Query\QueryConverter.cs (3)
382
Expression.ArrayIndex(pa, Expression.
Constant
(i)),
1865
return this.Visit(Expression.
Constant
(table));
1911
return this.Visit(Expression.
Constant
(table));
SqlClient\Query\SqlMethodCallConverter.cs (7)
1520
Expression.Invoke(Expression.
Constant
(getStringContainsPatternForced), cp.Accessor.Body, Expression.
Constant
('~')),
1554
Expression.Invoke(Expression.
Constant
(getStringStartsWithPatternForced), cp.Accessor.Body, Expression.
Constant
('~')),
1588
Expression.Invoke(Expression.
Constant
(getStringEndsWithPatternForced), cp.Accessor.Body, Expression.
Constant
('~')),
2487
Expression.Call(typeof(SqlHelpers), "TranslateVBLikePattern", Type.EmptyTypes, cp.Accessor.Body, Expression.
Constant
('~')),
SqlClient\SqlProvider.cs (1)
1666
Expression tmp = Expression.
Constant
(null);
System.Data.Services (23)
System\Data\Services\Parsing\RequestQueryParser.cs (6)
140
private static readonly ConstantExpression trueLiteral = Expression.
Constant
(true);
143
private static readonly ConstantExpression falseLiteral = Expression.
Constant
(false);
1940
arguments[arguments.Length - 1] = Expression.
Constant
(typeof(Nullable<>).MakeGenericType(castTargetType));
2077
Expression.
Constant
(property));
2113
Expression.Call(null /* instance */, OpenTypeMethods.GetValueOpenPropertyMethodInfo, instance, Expression.
Constant
(id));
2173
ConstantExpression expr = Expression.
Constant
(value);
System\Data\Services\Providers\BasicExpandProvider.cs (8)
1265
expression = Expression.Call(null /* instance */, getter, source, Expression.
Constant
(property));
1273
Expression.
Constant
(property));
1313
Expression.
Constant
(propertyName));
1443
bindings[1] = BindByName(this.elementType, "Description", Expression.
Constant
(this.WrapperDescription));
1520
skipTokenPropertyBindings[1] = BindByName(projectedSkipTokenType, "Description", Expression.
Constant
(skipTokenDescription.Remove(skipTokenDescription.Length - 1, 1).ToString()));
1527
Expression.
Constant
((this.WrapperDescription.Length == 0 ? "" : (this.WrapperDescription + ",")) + XmlConstants.HttpQueryStringSkipToken));
1682
bindingExpressions[1] = Expression.
Constant
(propertyNameList.ToString());
1701
Expression.
Constant
(resourceType));
System\Data\Services\RequestQueryProcessor.cs (3)
471
Expression.
Constant
(keyProp));
1189
resultWrapperBindings[1] = Expression.Bind(resultWrapperType.GetProperty("Description"), Expression.
Constant
(XmlConstants.HttpQueryStringSkipToken));
1241
skipTokenBindings[1] = Expression.Bind(skipTokenWrapperType.GetProperty("Description"), Expression.
Constant
(skipTokenDescription.ToString()));
System\Data\Services\RequestUriProcessor.cs (5)
1161
Expression body = Expression.Call(null /* instance */, OpenTypeMethods.GetValueOpenPropertyMethodInfo, parameter, Expression.
Constant
(propertyName));
1180
Expression body = Expression.Call(null /*instance*/, DataServiceProviderMethods.GetValueMethodInfo, parameter, Expression.
Constant
(property));
1202
Expression body = Expression.Call(null /*instance*/, getter, parameter, Expression.
Constant
(property));
1244
e = Expression.Call(null /*instance*/, DataServiceProviderMethods.GetValueMethodInfo, parameter, Expression.
Constant
(keyProperty));
1248
BinaryExpression body = Expression.Equal((Expression)e, Expression.
Constant
(keyValue));
System\Data\Services\WebUtil.cs (1)
52
internal static readonly ConstantExpression NullLiteral = Expression.
Constant
(null);
System.Data.Services.Client (9)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (3)
583
Expression.
Constant
(0),
586
Expression.
Constant
(1),
587
Expression.
Constant
(-1)));
System\Data\Services\Client\ALinq\ResourceBinder.cs (1)
798
AddSequenceQueryOption(rse, new TakeQueryOptionExpression(mce.Type, Expression.
Constant
(maxCardinality)));
System\Data\Services\Client\DataServiceContext.cs (1)
584
ResourceSetExpression rse = new ResourceSetExpression(typeof(IOrderedQueryable<T>), null, Expression.
Constant
(entitySetName), typeof(T), null, CountOption.None, null, null);
System\Data\Services\Client\DataServiceQueryOfT.cs (2)
163
new Expression[] { Expression.
Constant
(path) }));
195
new Expression[] { Expression.
Constant
(name), Expression.Constant(value, typeof(object)) }));
System\Data\Services\Client\ProjectionPlanCompiler.cs (2)
704
Expression.
Constant
(propertyNames.ToArray()),
705
Expression.
Constant
(propertyFunctions.ToArray()));
System.Web.DynamicData (1)
DynamicData\QueryableFilterUserControl.cs (1)
154
Expression compareExpression = Expression.Equal(propertyExpression, Expression.
Constant
(value));
System.Web.Extensions (14)
UI\WebControls\Dynamic.cs (11)
82
source.Expression, Expression.
Constant
(count)));
91
source.Expression, Expression.
Constant
(count)));
622
static readonly Expression trueLiteral = Expression.
Constant
(true);
623
static readonly Expression falseLiteral = Expression.
Constant
(false);
624
static readonly Expression nullLiteral = Expression.
Constant
(null);
999
ConstantExpression expr = Expression.
Constant
(value);
1029
expr = Expression.
Constant
(value);
1744
Expression.
Constant
(0)
1754
Expression.
Constant
(0)
1764
Expression.
Constant
(0)
1774
Expression.
Constant
(0)
UI\WebControls\Expressions\RangeExpression.cs (2)
99
ConstantExpression constantValue = Expression.
Constant
(ExpressionHelper.BuildObjectValue(value, propertyExpression.Type));
114
ConstantExpression constantValue = Expression.
Constant
(ExpressionHelper.BuildObjectValue(value, propertyExpression.Type));
UI\WebControls\Expressions\SearchExpression.cs (1)
86
return Expression.Call(property, SearchType.ToString(), Type.EmptyTypes, Expression.Constant(query, property.Type), Expression.
Constant
(ComparisonType));