175 references to Convert
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Extensions (31)
RequestDelegateFactory.cs (14)
181object => Expression.Convert(TargetExpr, handler.Target.GetType()),
252var targetExpression = Expression.Convert(TargetExpr, methodInfo.DeclaringType);
548return Expression.Call(WrapObjectAsValueTaskMethod, Expression.Convert(methodCall, typeof(object)));
667factoryContext.BoxedArgs[i] = Expression.Convert(args[i], typeof(object));
1556return Expression.Convert(indexExpression, returnType ?? typeof(string));
1650return Expression.Call(GetKeyedServiceMethod.MakeGenericMethod(parameter.ParameterType), RequestServicesExpr, Expression.Convert(
1654return Expression.Call(GetRequiredKeyedServiceMethod.MakeGenericMethod(parameter.ParameterType), RequestServicesExpr, Expression.Convert(
1786Expression.Assign(parameter.ParameterType.IsArray ? Expression.ArrayAccess(argument, index) : argument, Expression.Convert(parsedValue, targetParseType)),
1937Expression.Condition(Expression.Equal(valueExpression, Expression.Convert(Expression.Constant(StringValues.Empty), parameter.ParameterType)),
1938Expression.Convert(Expression.Constant(null), parameter.ParameterType),
1955Expression.Convert(Expression.Constant(parameter.DefaultValue), parameter.ParameterType)));
2014return Expression.Convert(boundValueExpr, parameter.ParameterType);
2343return Expression.Convert(
2349return Expression.Convert(BodyValueExpr, parameter.ParameterType);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (14)
210var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
217var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
231var castMethodCall = Expression.Convert(methodCall, typeof(object));
262var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
269var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
283Expression.Convert(
285Expression.Convert(customAwaitableParam, postCoercionMethodReturnType),
295Expression.Convert(isCompletedParam, awaitableInfo.AwaiterType),
311Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
322Expression.Convert(
324Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
337Expression.Convert(onCompletedParam1, awaitableInfo.AwaiterType),
353Expression.Convert(unsafeOnCompletedParam1, awaitableInfo.AwaiterType),
375Expression.Convert(coercedMethodCall, typeof(object)),
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (17)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (14)
210var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
217var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
231var castMethodCall = Expression.Convert(methodCall, typeof(object));
262var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
269var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
283Expression.Convert(
285Expression.Convert(customAwaitableParam, postCoercionMethodReturnType),
295Expression.Convert(isCompletedParam, awaitableInfo.AwaiterType),
311Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
322Expression.Convert(
324Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
337Expression.Convert(onCompletedParam1, awaitableInfo.AwaiterType),
353Expression.Convert(unsafeOnCompletedParam1, awaitableInfo.AwaiterType),
375Expression.Convert(coercedMethodCall, typeof(object)),
Microsoft.AspNetCore.Mvc.RazorPages (7)
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Microsoft.AspNetCore.OpenApi (16)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (14)
210var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
217var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
231var castMethodCall = Expression.Convert(methodCall, typeof(object));
262var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
269var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
283Expression.Convert(
285Expression.Convert(customAwaitableParam, postCoercionMethodReturnType),
295Expression.Convert(isCompletedParam, awaitableInfo.AwaiterType),
311Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
322Expression.Convert(
324Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
337Expression.Convert(onCompletedParam1, awaitableInfo.AwaiterType),
353Expression.Convert(unsafeOnCompletedParam1, awaitableInfo.AwaiterType),
375Expression.Convert(coercedMethodCall, typeof(object)),
Microsoft.AspNetCore.Shared.Tests (15)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (14)
210var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
217var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
231var castMethodCall = Expression.Convert(methodCall, typeof(object));
262var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
269var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
283Expression.Convert(
285Expression.Convert(customAwaitableParam, postCoercionMethodReturnType),
295Expression.Convert(isCompletedParam, awaitableInfo.AwaiterType),
311Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
322Expression.Convert(
324Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
337Expression.Convert(onCompletedParam1, awaitableInfo.AwaiterType),
353Expression.Convert(unsafeOnCompletedParam1, awaitableInfo.AwaiterType),
375Expression.Convert(coercedMethodCall, typeof(object)),
Microsoft.AspNetCore.SignalR.Core (16)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (14)
210var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
217var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
231var castMethodCall = Expression.Convert(methodCall, typeof(object));
262var valueCast = Expression.Convert(valueObj, paramInfo.ParameterType);
269var instanceCast = Expression.Convert(targetParameter, targetTypeInfo.AsType());
283Expression.Convert(
285Expression.Convert(customAwaitableParam, postCoercionMethodReturnType),
295Expression.Convert(isCompletedParam, awaitableInfo.AwaiterType),
311Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
322Expression.Convert(
324Expression.Convert(getResultParam, awaitableInfo.AwaiterType),
337Expression.Convert(onCompletedParam1, awaitableInfo.AwaiterType),
353Expression.Convert(unsafeOnCompletedParam1, awaitableInfo.AwaiterType),
375Expression.Convert(coercedMethodCall, typeof(object)),
Microsoft.CodeAnalysis.EditorFeatures.Wpf (15)
Lightup\LightupHelpers.cs (15)
90: Expression.Convert(parameter, type);
94Expression.Convert(Expression.Call(instance, property.GetMethod), typeof(TResult)),
142: Expression.Convert(parameter, type);
210: Expression.Convert(parameter, type);
214: Expression.Convert(argument, argType);
274Expression.Convert(Expression.Call(null, method), typeof(TResult)),
326: Expression.Convert(parameter, type);
330Expression.Convert(Expression.Call(instance, method), typeof(TResult)),
392: Expression.Convert(parameter, type);
396: Expression.Convert(argument, argType);
400Expression.Convert(
478: Expression.Convert(parameter, type);
482: Expression.Convert(argument0, arg0Type);
486: Expression.Convert(argument1, arg1Type);
490Expression.Convert(
Microsoft.CSharp (4)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.VisualBasic.Core (2)
PresentationFramework (8)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (8)
372Expression.Convert(Expression.Call(HelperType.GetMethod("CreateMarshaler", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static), parms),
381Expression.Convert(Expression.Call(HelperType.GetMethod("GetAbi", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static),
382new[] { Expression.Convert(parms[0], MarshalerType) }),
394new Expression[] { Expression.Convert(parms[0], MarshalerType), parms[1] }), parms).Compile();
403new[] { Expression.Convert(parms[0], AbiType) }), parms).Compile();
411Expression.Convert(Expression.Call(HelperType.GetMethod("FromManaged", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static), parms),
431new[] { Expression.Convert(parms[0], MarshalerType) }), parms).Compile();
896Expression.Convert(parms[0], HelperType),
System.ComponentModel.Composition (1)
System.Composition.TypedParts (6)
System.Linq.Expressions (18)
System\Linq\Expressions\BinaryExpression.cs (1)
418Convert(