164 references to Parameter
Microsoft.AspNetCore.Components.Endpoints (5)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (5)
574Expression.Parameter(typeof(FormDataReader).MakeByRefType(), "reader"), 575Expression.Parameter(typeof(Type), "type"), 576Expression.Parameter(typeof(FormDataMapperOptions), "options"), 577Expression.Parameter(typeof(T).MakeByRefType(), "result"), 578Expression.Parameter(typeof(bool).MakeByRefType(), "foundValue"));
Microsoft.AspNetCore.Components.Forms (1)
FieldIdentifier.cs (1)
189var parameter = Expression.Parameter(typeof(object), "value");
Microsoft.AspNetCore.Http.Abstractions (3)
Extensions\UseMiddlewareExtensions.cs (3)
297var httpContextArg = Expression.Parameter(typeof(HttpContext), "httpContext"); 298var providerArg = Expression.Parameter(typeof(IServiceProvider), "serviceProvider"); 299var instanceArg = Expression.Parameter(middleware, "middleware");
Microsoft.AspNetCore.Http.Extensions (22)
RequestDelegateFactory.cs (5)
85private static readonly ParameterExpression TargetExpr = Expression.Parameter(typeof(object), "target"); 86private static readonly ParameterExpression BodyValueExpr = Expression.Parameter(typeof(object), "bodyValue"); 88private static readonly ParameterExpression BoundValuesArrayExpr = Expression.Parameter(typeof(object[]), "boundValues"); 114private static readonly ParameterExpression FilterContextExpr = Expression.Parameter(typeof(EndpointFilterInvocationContext), "context"); 119private static readonly ParameterExpression InvokedFilterContextExpr = Expression.Parameter(typeof(EndpointFilterInvocationContext), "filterContext");
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (5)
574Expression.Parameter(typeof(FormDataReader).MakeByRefType(), "reader"), 575Expression.Parameter(typeof(Type), "type"), 576Expression.Parameter(typeof(FormDataMapperOptions), "options"), 577Expression.Parameter(typeof(T).MakeByRefType(), "result"), 578Expression.Parameter(typeof(bool).MakeByRefType(), "foundValue"));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
200var targetParameter = Expression.Parameter(typeof(object), "target"); 201var parametersParameter = Expression.Parameter(typeof(object?[]), "parameters"); 252var targetParameter = Expression.Parameter(typeof(object), "target"); 253var parametersParameter = Expression.Parameter(typeof(object[]), "parameters"); 279var customAwaitableParam = Expression.Parameter(typeof(object), "awaitable"); 292var isCompletedParam = Expression.Parameter(typeof(object), "awaiter"); 299var getResultParam = Expression.Parameter(typeof(object), "awaiter"); 333var onCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 349var unsafeOnCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
src\Shared\ParameterBindingMethodCache.cs (1)
39internal static readonly ParameterExpression HttpContextExpr = Expression.Parameter(typeof(HttpContext), "httpContext");
Microsoft.AspNetCore.JsonPatch (1)
JsonPatchDocumentOfT.cs (1)
732var fakeParameter = Expression.Parameter(typeof(object), null);
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
39internal static readonly ParameterExpression HttpContextExpr = Expression.Parameter(typeof(HttpContext), "httpContext");
Microsoft.AspNetCore.Mvc.Core (15)
ModelBinding\Binders\TryParseModelBinder.cs (2)
19private static readonly ParameterExpression BindingContextExpression = Expression.Parameter(typeof(ModelBindingContext), "bindingContext"); 20private static readonly ParameterExpression ValueProviderResultExpression = Expression.Parameter(typeof(ValueProviderResult), "valueProviderResult");
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
255var args = Expression.Parameter(typeof(object?[]), "args");
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
72var parameter = Expression.Parameter(typeof(object), "model");
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
200var targetParameter = Expression.Parameter(typeof(object), "target"); 201var parametersParameter = Expression.Parameter(typeof(object?[]), "parameters"); 252var targetParameter = Expression.Parameter(typeof(object), "target"); 253var parametersParameter = Expression.Parameter(typeof(object[]), "parameters"); 279var customAwaitableParam = Expression.Parameter(typeof(object), "awaitable"); 292var isCompletedParam = Expression.Parameter(typeof(object), "awaiter"); 299var getResultParam = Expression.Parameter(typeof(object), "awaiter"); 333var onCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 349var unsafeOnCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
Microsoft.AspNetCore.Mvc.RazorPages (10)
Infrastructure\DefaultPageActivatorProvider.cs (2)
67var parameter1 = Expression.Parameter(typeof(PageContext), "pageContext"); 68var parameter2 = Expression.Parameter(typeof(ViewContext), "viewContext");
Infrastructure\ExecutorFactory.cs (8)
84var receiver = Expression.Parameter(typeof(object), "receiver"); 85var arguments = Expression.Parameter(typeof(object[]), "arguments"); 114var receiver = Expression.Parameter(typeof(object), "receiver"); 115var arguments = Expression.Parameter(typeof(object[]), "arguments"); 150var receiver = Expression.Parameter(typeof(object), "receiver"); 151var arguments = Expression.Parameter(typeof(object[]), "arguments"); 176var receiver = Expression.Parameter(typeof(object), "receiver"); 177var arguments = Expression.Parameter(typeof(object[]), "arguments");
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
CachedExpressionCompiler.cs (1)
175var parameterExpression = Expression.Parameter(typeof(object), "capturedLocal");
ExpressionHelper.cs (1)
214var fakeParameter = Expression.Parameter(typeof(object), null);
ViewDataDictionaryFactory.cs (3)
20var parameter1 = Expression.Parameter(typeof(IModelMetadataProvider), "metadataProvider"); 21var parameter2 = Expression.Parameter(typeof(ModelStateDictionary), "modelState"); 41var parameter = Expression.Parameter(typeof(ViewDataDictionary), "viewDataDictionary");
Microsoft.AspNetCore.OpenApi (12)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
200var targetParameter = Expression.Parameter(typeof(object), "target"); 201var parametersParameter = Expression.Parameter(typeof(object?[]), "parameters"); 252var targetParameter = Expression.Parameter(typeof(object), "target"); 253var parametersParameter = Expression.Parameter(typeof(object[]), "parameters"); 279var customAwaitableParam = Expression.Parameter(typeof(object), "awaitable"); 292var isCompletedParam = Expression.Parameter(typeof(object), "awaiter"); 299var getResultParam = Expression.Parameter(typeof(object), "awaiter"); 333var onCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 349var unsafeOnCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
src\Shared\ParameterBindingMethodCache.cs (1)
39internal static readonly ParameterExpression HttpContextExpr = Expression.Parameter(typeof(HttpContext), "httpContext");
Microsoft.AspNetCore.Shared.Tests (11)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
200var targetParameter = Expression.Parameter(typeof(object), "target"); 201var parametersParameter = Expression.Parameter(typeof(object?[]), "parameters"); 252var targetParameter = Expression.Parameter(typeof(object), "target"); 253var parametersParameter = Expression.Parameter(typeof(object[]), "parameters"); 279var customAwaitableParam = Expression.Parameter(typeof(object), "awaitable"); 292var isCompletedParam = Expression.Parameter(typeof(object), "awaiter"); 299var getResultParam = Expression.Parameter(typeof(object), "awaiter"); 333var onCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 349var unsafeOnCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
Microsoft.AspNetCore.SignalR.Core (11)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (11)
200var targetParameter = Expression.Parameter(typeof(object), "target"); 201var parametersParameter = Expression.Parameter(typeof(object?[]), "parameters"); 252var targetParameter = Expression.Parameter(typeof(object), "target"); 253var parametersParameter = Expression.Parameter(typeof(object[]), "parameters"); 279var customAwaitableParam = Expression.Parameter(typeof(object), "awaitable"); 292var isCompletedParam = Expression.Parameter(typeof(object), "awaiter"); 299var getResultParam = Expression.Parameter(typeof(object), "awaiter"); 333var onCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 349var unsafeOnCompletedParam1 = Expression.Parameter(typeof(object), "awaiter"); 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
Microsoft.CodeAnalysis.EditorFeatures.Wpf (8)
Lightup\LightupHelpers.cs (8)
86var parameter = Expression.Parameter(typeof(T), GenerateParameterName(typeof(T))); 138var parameter = Expression.Parameter(typeof(T), GenerateParameterName(typeof(T))); 205var parameter = Expression.Parameter(typeof(T), GenerateParameterName(typeof(T))); 206var argument = Expression.Parameter(typeof(TArg), parameters[0].Name); 270var parameter = Expression.Parameter(typeof(T), GenerateParameterName(typeof(T))); 322var parameter = Expression.Parameter(typeof(T), GenerateParameterName(typeof(T))); 387var parameter = Expression.Parameter(typeof(T), GenerateParameterName(typeof(T))); 472var parameter = Expression.Parameter(typeof(T), GenerateParameterName(typeof(T)));
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Protocol\Converters\StringEnumConverter.cs (1)
33var param = Expression.Parameter(typeof(string), "value");
Protocol\Converters\SumConverter.cs (2)
156var param1 = Expression.Parameter(typeof(Utf8JsonReader).MakeByRefType(), "reader"); 157var param2 = Expression.Parameter(typeof(JsonSerializerOptions), "options");
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
110private static readonly ParameterExpression parameter = Expression.Parameter(typeof(object), "debug");
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (8)
HelperFactory.cs (8)
128var outputParameter = Expression.Parameter(typeof(TextWriter), "output"); 129var optionsParameter = Expression.Parameter(typeof(HelperOptions), "options"); 130var contextParameter = Expression.Parameter(typeof(object), "context"); 131var argumentsParameter = Expression.Parameter(typeof(object[]), "arguments"); 175var outputParameter = Expression.Parameter(typeof(TextWriter), "output"); 176var contextParameter = Expression.Parameter(typeof(object), "context"); 177var argumentsParameter = Expression.Parameter(typeof(object[]), "arguments"); 329var selectParam = Expression.Parameter(typeof(object), "o");
Microsoft.Extensions.DependencyInjection.Abstractions (2)
ActivatorUtilities.cs (2)
338provider = Expression.Parameter(typeof(IServiceProvider), "provider"); 339argumentArray = Expression.Parameter(typeof(object[]), "argumentArray");
PresentationFramework (12)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (12)
370var parms = new[] { Expression.Parameter(typeof(T), "arg") }; 379var parms = new[] { Expression.Parameter(typeof(object), "arg") }; 391var parms = new[] { Expression.Parameter(typeof(object), "arg"), Expression.Parameter(typeof(IntPtr), "dest") }; 400var parms = new[] { Expression.Parameter(typeof(object), "arg") }; 409var parms = new[] { Expression.Parameter(typeof(T), "arg") }; 420var parms = new[] { Expression.Parameter(typeof(T), "arg"), Expression.Parameter(typeof(IntPtr), "dest") }; 428var parms = new[] { Expression.Parameter(typeof(object), "arg") }; 885var parms = new[] { Expression.Parameter(typeof(IntPtr), "arg") }; 893var parms = new[] { Expression.Parameter(typeof(T), "arg") }; 903var parms = new[] { Expression.Parameter(typeof(IObjectReference), "arg") };
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ConstraintServices.cs (1)
25ParameterExpression parameter = Expression.Parameter(typeof(ExportDefinition), "exportDefinition");
System.Composition.Hosting (2)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (2)
36var providerArg = Expression.Parameter(typeof(IDictionary<string, object>), "metadata"); 46var providerArg = Expression.Parameter(typeof(IDictionary<string, object>), "metadata");
System.Composition.TypedParts (3)
System\Composition\TypedParts\ActivationFeatures\OnImportsSatisfiedFeature.cs (1)
53var ois = Expression.Parameter(typeof(object), "ois");
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
168var contextParam = Expression.Parameter(typeof(LifetimeContext), "cc"); 169var operationParm = Expression.Parameter(typeof(CompositionOperation), "op");
System.Linq.Expressions (27)
System\Dynamic\BindingRestrictions.cs (1)
308ParameterExpression temp = Expression.Parameter(typeof(object), null);
System\Dynamic\DynamicObject.cs (6)
570ParameterExpression result = Expression.Parameter(typeof(object), null); 571ParameterExpression callArgs = method != DynamicObject_TryBinaryOperation ? Expression.Parameter(typeof(object[]), null) : Expression.Parameter(typeof(object), null); 701ParameterExpression result = Expression.Parameter(typeof(object), null); 702ParameterExpression callArgs = Expression.Parameter(typeof(object[]), null); 761ParameterExpression callArgs = Expression.Parameter(typeof(object[]), null);
System\Dynamic\ExpandoObject.cs (1)
790ParameterExpression value = Expression.Parameter(typeof(object), "value");
System\Linq\Expressions\BinaryExpression.cs (2)
397ParameterExpression left = Parameter(Left.Type, "left"); 398ParameterExpression right = Parameter(Right.Type, "right");
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (2)
202ParameterExpression switchValue = Expression.Parameter(node.SwitchValue.Type, "switchValue"); 203ParameterExpression testValue = Expression.Parameter(GetTestValueType(node), "testValue");
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
2205LocalDefinition left = _locals.DefineLocal(Expression.Parameter(array.Type, nameof(array)), _instructions.Count); 2206LocalDefinition right = _locals.DefineLocal(Expression.Parameter(index.Type, nameof(index)), _instructions.Count); 2308memberTemp = _locals.DefineLocal(Expression.Parameter(member.Expression.Type, "member"), _instructions.Count); 2642ParameterExpression temp = Expression.Parameter(node.Left.Type, "temp");
System\Linq\Expressions\ParameterExpression.cs (1)
157return Parameter(type, name: null);
System\Linq\Expressions\UnaryExpression.cs (6)
165ParameterExpression temp = Parameter(Operand.Type, name: null); 186ParameterExpression temp1 = Parameter(member.Expression.Type, name: null); 211ParameterExpression temp2 = Parameter(member.Type, name: null); 246temps[i] = Parameter(index.Object!.Type, name: null); 252args[i - 1] = temps[i] = Parameter(arg.Type, name: null); 259ParameterExpression lastTemp = temps[i] = Parameter(index.Type, name: null);
System\Runtime\CompilerServices\CallSite.cs (2)
368ParameterExpression[] @params = Array.ConvertAll(invoke.GetParametersCached(), p => Expression.Parameter(p.ParameterType, p.Name)); 671ParameterExpression[] @params = Array.ConvertAll(invoke.GetParametersCached(), p => Expression.Parameter(p.ParameterType, p.Name));
System\Runtime\CompilerServices\CallSiteBinder.cs (2)
68@params[i] = Expression.Parameter(pis[i + 1].ParameterType, "$arg" + i); 160var site = Expression.Parameter(typeof(CallSite), "$site");