108 references to Convert
System.Activities (8)
System\Activities\Expressions\MethodCallExpressionHelper.cs (8)
35
Expression.
Convert
(
42
Expression.
Convert
(Expression.ArrayIndex(objectArray, Expression.Constant(i)), variable.Type)));
49
Expression.
Convert
(variable, typeof(object))));
67
callExpression = Expression.Call(Expression.
Convert
(targetInstance, methodInfo.DeclaringType), methodInfo, variables);
87
assignTempInstanceExpression = Expression.Assign(tempInstance, Expression.
Convert
(targetInstance, methodInfo.DeclaringType));
93
callExpression = Expression.Call(Expression.
Convert
(targetInstance, methodInfo.DeclaringType), methodInfo, variables);
120
Expression.
Convert
(callExpression, typeof(object)));
163
assignVariablesBackExpressions.Add(Expression.Assign(targetInstance, Expression.
Convert
(tempInstance, typeof(object))));
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (3)
536
System.Linq.Expressions.Expression s = System.Linq.Expressions.Expression.
Convert
(this.Expression, typeof(ModelItemImpl));
543
System.Linq.Expressions.Expression s = System.Linq.Expressions.Expression.
Convert
(this.Expression, typeof(ModelItemImpl));
544
System.Linq.Expressions.Expression objectValue = System.Linq.Expressions.Expression.
Convert
(value.Expression, typeof(object));
System.Core (18)
Microsoft\Scripting\Actions\BindingRestrictions.cs (2)
291
Expression.
Convert
(_expression, typeof(object)),
310
Expression.
Convert
(_expression, typeof(object)),
Microsoft\Scripting\Actions\CallSite.cs (4)
371
body.Add(Expression.Assign(@this, Expression.
Convert
(site, @this.Type)));
501
Expression.
Convert
(rule, typeof(object)),
502
Expression.
Convert
(originalRule, typeof(object))
734
return Expression.
Convert
(arg, type);
Microsoft\Scripting\Actions\CallSiteBinder.cs (1)
199
Expression.
Convert
(site, siteType),
Microsoft\Scripting\Actions\DynamicObject.cs (5)
371
paramArgs.Add(Expression.
Convert
(args[i], typeof(object)));
393
Expression.
Convert
(
494
var convert = Expression.
Convert
(resultMO.Expression, binder.ReturnType);
623
Expression.Assign(result, Expression.
Convert
(value, typeof(object)))
744
return Expression.
Convert
(Expression, typeof(DynamicObject));
Microsoft\Scripting\Actions\ExpandoObject.cs (2)
771
Expression.
Convert
(value.Expression, typeof(object)),
890
return Expression.
Convert
(Expression, LimitType);
Microsoft\Scripting\Ast\BinaryExpression.cs (1)
437
Convert
(
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (1)
115
expression = Expression.
Convert
(expression, typeof(object));
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (2)
309
UnaryExpression e = Expression.
Convert
(
312
Expression.
Convert
(node.Operand, pis[0].ParameterType)
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (3)
536
System.Linq.Expressions.Expression s = System.Linq.Expressions.Expression.
Convert
(this.Expression, typeof(ModelItemImpl));
543
System.Linq.Expressions.Expression s = System.Linq.Expressions.Expression.
Convert
(this.Expression, typeof(ModelItemImpl));
544
System.Linq.Expressions.Expression objectValue = System.Linq.Expressions.Expression.
Convert
(value.Expression, typeof(object));
System.Data.Entity (20)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (4)
375
return Expression.
Convert
(
451
return Expression.
Convert
(
532
_initializationArguments.Add(Expression.
Convert
(original, typeof(object)));
534
return Expression.
Convert
(
System\Data\Common\Internal\Materialization\Translator.cs (5)
718
result = Expression.
Convert
(input, type);
800
result = Expression.
Convert
(result, typeof(IEntityWrapper));
2097
result = Expression.
Convert
(result, nonNullableType);
2111
Expression.
Convert
(Expression.
Convert
(result, TypeSystem.GetNonNullableType(DetermineClrType(columnType.EdmType))), typeof(object)));
System\Data\Objects\ELinq\InitializerFacet.cs (1)
229
Expression newGrouping = Expression.
Convert
(Expression.New(constructor, GetPropertyReaders(propertyTranslatorResults)), this.ClrType);
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
414
normalized = Expression.Lambda(lambda.Type, Expression.
Convert
(coalesce.Left, typeof(bool)), lambda.Parameters);
System\Data\Objects\ELinq\TypeSystem.cs (1)
95
expression = Expression.
Convert
(expression, requiredType);
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
314
Expression.
Convert
(Object_Parameter, declaringType),
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (4)
86
Expression.
Convert
(Object_Parameter, entityWrapperField.DeclaringType), entityWrapperField),
106
Expression.
Convert
(Object_Parameter, entityWrapperField.DeclaringType),
117
Expression.Call(Expression.
Convert
(Object_Parameter, proxyType), baseGetterMethod, PropertyName_Parameter),
126
Expression.Call(Expression.
Convert
(Object_Parameter, proxyType), baseSetterMethod, PropertyName_Parameter, PropertyValue_Parameter),
System\Data\SqlClient\SqlTypesAssembly.cs (3)
47
return Expression.
Convert
(exp, convertToType);
52
return Expression.
Convert
(exp, typeof(TConvertToType));
590
Expression result = Expression.
Convert
(Expression.New(sqlStringFromStringCtor, toConvert), typeof(object));
System.Data.Linq (15)
ChangeDirector.cs (3)
255
initializers[i++] = Expression.
Convert
(this.GetMemberExpression(source, mm.Member), typeof(object));
322
pv = Expression.
Convert
(p, rowType.Type);
385
pv = Expression.
Convert
(p, rowType.Type);
DataServices.cs (2)
261
e = Expression.
Convert
(e, member.DeclaringType.Type);
419
keyExprs[i] = Expression.
Convert
(
SqlClient\Query\Funcletizer.cs (1)
49
return (e.NodeType == ExpressionType.Convert) ? Expression.
Convert
(local, e.Type) : Expression.ConvertChecked(local, e.Type);
SqlClient\Query\QueryConverter.cs (7)
380
Expression.
Convert
(
605
Expression.
Convert
(p, type),
714
Expression.Lambda(Expression.
Convert
(cp.Accessor.Body, type), cp.Accessor.Parameters.ToArray()),
824
return this.VisitCast(Expression.
Convert
(qn.Arguments[0], qn.Type)) as SqlExpression;
827
return this.VisitCast(Expression.
Convert
(qn.Arguments[0], typeof(decimal))) as SqlExpression;
859
return this.VisitCast(Expression.
Convert
(qn.Arguments[0], typeof(decimal))) as SqlExpression;
2478
Expression[] init = new Expression[1] { Expression.
Convert
(p, typeof(object)) };
SqlClient\Query\Translator.cs (2)
171
(Expression)p : (Expression)Expression.
Convert
(p, metaMember.Member.DeclaringType);
177
keyValue = Expression.
Convert
(keyValue, memberExpression.Type);
System.Data.Services (21)
System\Data\Services\OpenTypes\OpenTypeMethods.cs (1)
716
return expression.Type.IsValueType ? Expression.
Convert
(expression, typeof(object)) : expression;
System\Data\Services\Parsing\FunctionDescription.cs (2)
378
return Expression.
Convert
(target, (Type)ce.Value);
403
return Expression.
Convert
(arguments[0], targetType);
System\Data\Services\Parsing\RequestQueryParser.cs (11)
361
expr = Expression.
Convert
(expr, typeof(bool));
1458
right = Expression.
Convert
(right, typeof(Nullable<>).MakeGenericType(right.Type));
1463
left = Expression.
Convert
(left, typeof(Nullable<>).MakeGenericType(left.Type));
1545
right = Expression.
Convert
(right, left.Type);
1549
left = Expression.
Convert
(left, right.Type);
1569
left = Expression.
Convert
(left, typeof(Nullable<>).MakeGenericType(left.Type));
1573
right = Expression.
Convert
(right, typeof(Nullable<>).MakeGenericType(right.Type));
1903
openArguments[i] = Expression.
Convert
(arguments[i], typeof(object));
2078
propertyAccess = Expression.
Convert
(propertyAccess, property.Type);
2290
falseIf = Expression.
Convert
(falseIf, typeof(Nullable<>).MakeGenericType(falseIf.Type));
2546
return Expression.
Convert
(expr, type);
System\Data\Services\Providers\BasicExpandProvider.cs (4)
1274
expression = Expression.
Convert
(expression, property.Type);
1285
expression = Expression.
Convert
(expression, WebUtil.GetTypeAllowingNull(expression.Type));
1595
propertyAccess = Expression.
Convert
(propertyAccess, WebUtil.GetTypeAllowingNull(resourceProperty.Type));
1640
propertyAccess = Expression.
Convert
(propertyAccess, typeof(object));
System\Data\Services\RequestQueryProcessor.cs (1)
472
e = Expression.
Convert
(e, keyProp.Type);
System\Data\Services\RequestUriProcessor.cs (2)
1181
body = Expression.
Convert
(body, property.Type);
1245
e = Expression.
Convert
(e, keyProperty.Type);
System.Data.Services.Client (11)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (1)
494
normalized = Expression.Lambda(lambda.Type, Expression.
Convert
(coalesce.Left, typeof(bool)), lambda.Parameters);
System\Data\Services\Client\AtomMaterializer.cs (2)
1118
Expression body = Expression.Call(Expression.
Convert
(list, listType), addMethod, Expression.
Convert
(item, listElementType));
System\Data\Services\Client\DataServiceQueryOfT.cs (3)
161
Expression.
Convert
(this.Expression, typeof(DataServiceQuery<TElement>.DataServiceOrderedQuery)),
176
Expression.
Convert
(this.Expression, typeof(DataServiceQuery<TElement>.DataServiceOrderedQuery)),
193
Expression.
Convert
(this.Expression, typeof(DataServiceQuery<TElement>.DataServiceOrderedQuery)),
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
368
body = Expression.
Convert
(body, typeof(object));
467
Expression result = Expression.
Convert
(value, type);
643
e = Expression.
Convert
(e, typeof(object));
673
e = Expression.
Convert
(e, typeof(object));
707
return Expression.
Convert
(reboundExpression, projectedType);
System.Web.DynamicData (1)
DynamicData\QueryableFilterUserControl.cs (1)
151
propertyExpression = Expression.
Convert
(propertyExpression, Misc.RemoveNullableFromType(propertyExpression.Type));
System.Web.Extensions (8)
UI\WebControls\Dynamic.cs (7)
769
right = Expression.
Convert
(right, left.Type);
772
left = Expression.
Convert
(left, right.Type);
1159
return Expression.
Convert
(expr, type);
1166
return Expression.
Convert
(expr, type);
1525
if (type.IsValueType || exact) return Expression.
Convert
(expr, type);
1792
if (left.Type.IsValueType) left = Expression.
Convert
(left, typeof(object));
1793
if (right.Type.IsValueType) right = Expression.
Convert
(right, typeof(object));
UI\WebControls\Expressions\ExpressionHelper.cs (1)
13
return Expression.
Convert
(exp, realType);