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