85 references to Variable
Microsoft.AspNetCore.Components.Endpoints (8)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (8)
36var propertyFoundValue = Expression.Variable(typeof(bool), "foundValueForProperty");
37var succeeded = Expression.Variable(typeof(bool), "succeeded");
38var localFoundValueVar = Expression.Variable(typeof(bool), "localFoundValue");
39var exceptionVar = Expression.Variable(typeof(Exception), "mappingException");
145var exception = Expression.Variable(typeof(Exception), "constructorException");
344var propertyConverterVar = Expression.Variable(propertyConverterType, $"{property.Name}Converter");
444var constructorParameterConverterVar = Expression.Variable(constructorParameterConverterType, $"{constructorParameter.Name}Converter");
537return Expression.Variable(typeof(ValueTuple<,>).MakeGenericType(typeof(bool), constructorParameter.Type), constructorParameter.Name);
Microsoft.AspNetCore.Http.Extensions (23)
RequestDelegateFactory.cs (12)
87private static readonly ParameterExpression WasParamCheckFailureExpr = Expression.Variable(typeof(bool), "wasParamCheckFailure");
1570var argumentExpression = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
1668var argument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
1752var parsedValue = Expression.Variable(nonNullableParameterType, "parsedValue");
1781var index = Expression.Variable(typeof(int), "index");
1798var stringArrayExpr = parameter.ParameterType.IsArray ? Expression.Variable(typeof(string[]), "tempStringArray") : null;
1895var argument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
2112var formArgument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
2133var formReader = Expression.Variable(typeof(FormDataReader), $"{parameter.Name}_reader");
2134var formDict = Expression.Variable(typeof(IReadOnlyDictionary<FormKey, StringValues>), "form_dict");
2135var formBuffer = Expression.Variable(typeof(char[]), "form_buffer");
2136var formDataMappingException = Expression.Variable(typeof(FormDataMappingException), "form_exception");
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (8)
36var propertyFoundValue = Expression.Variable(typeof(bool), "foundValueForProperty");
37var succeeded = Expression.Variable(typeof(bool), "succeeded");
38var localFoundValueVar = Expression.Variable(typeof(bool), "localFoundValue");
39var exceptionVar = Expression.Variable(typeof(Exception), "mappingException");
145var exception = Expression.Variable(typeof(Exception), "constructorException");
344var propertyConverterVar = Expression.Variable(propertyConverterType, $"{property.Name}Converter");
444var constructorParameterConverterVar = Expression.Variable(constructorParameterConverterType, $"{constructorParameter.Name}Converter");
537return Expression.Variable(typeof(ValueTuple<,>).MakeGenericType(typeof(bool), constructorParameter.Type), constructorParameter.Name);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
ParameterBindingMethodCacheTests.cs (9)
33var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression;
51var call = methodFound!(Expression.Variable(typeof(Uri), "parsedValue"), Expression.Constant(UriKind.RelativeOrAbsolute)) as MethodCallExpression;
73var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression;
105var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression;
129var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression;
183var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression;
204var parsedValue = Expression.Variable(type, "parsedValue");
229var parsedValue = Expression.Variable(type, "parsedValue");
260var parsedValue = Expression.Variable(type, "parsedValue");
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.OpenApi (3)
Microsoft.CSharp (1)
Microsoft.Extensions.DependencyInjection (4)
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (10)
322Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result")
323Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array")
401Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result")
402Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array")
489Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result")
490Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array")
558Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result")
559Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array")
627Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result")
628Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array")
System.Composition.Hosting (1)
System.Linq.Expressions (21)