10 types derived from ParameterInfo
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.Extensions.Validation.Tests (1)
System.Private.CoreLib (1)
System.Reflection.Context (2)
System.Reflection.Emit (1)
System.Reflection.MetadataLoadContext (1)
1238 references to ParameterInfo
Aspire.Dashboard (1)
ConfigurationSchemaGenerator (1)
dotnet-svcutil-lib (55)
Microsoft.AspNetCore.Components (3)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Connections.Abstractions (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (9)
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Abstractions (15)
Extensions\UseMiddlewareExtensions.cs (7)
109private readonly ParameterInfo[] _parameters;
116ParameterInfo[] parameters)
200private static Func<T, HttpContext, IServiceProvider, Task> ReflectionFallback<T>(MethodInfo methodInfo, ParameterInfo[] parameters)
239private static bool TryGetServiceKey(ParameterInfo parameterInfo, [NotNullWhen(true)] out object? key)
246private static UnaryExpression GetMethodArgument(ParameterInfo parameter, ParameterExpression providerArg, Type parameterType, Type? declaringType)
265private static Func<T, HttpContext, IServiceProvider, Task> CompileExpression<T>(MethodInfo methodInfo, ParameterInfo[] parameters)
305var parameter = parameters[i];
Microsoft.AspNetCore.Http.Extensions (50)
RequestDelegateFactory.cs (19)
648private static Expression[] CreateArguments(ParameterInfo[]? parameters, RequestDelegateFactoryContext factoryContext)
659factoryContext.Parameters = new List<ParameterInfo>(parameters);
700private static Expression CreateArgument(ParameterInfo parameter, RequestDelegateFactoryContext factoryContext, out bool hasTryParse, out bool hasBindAsync, out bool isAsParameters)
1571private static Expression BindParameterFromProperties(ParameterInfo parameter, RequestDelegateFactoryContext factoryContext)
1645private static Expression BindParameterFromService(ParameterInfo parameter, RequestDelegateFactoryContext factoryContext)
1656private static Expression BindParameterFromKeyedService(ParameterInfo parameter, object? key, RequestDelegateFactoryContext factoryContext)
1671private static Expression BindParameterFromValue(ParameterInfo parameter, Expression valueExpression, RequestDelegateFactoryContext factoryContext, string source)
1899ParameterInfo parameter,
1970private static Expression BindParameterFromProperty(ParameterInfo parameter, MemberExpression property, PropertyInfo itemProperty, string key, RequestDelegateFactoryContext factoryContext, string source)
2013private static Expression BindParameterFromRouteValueOrQueryString(ParameterInfo parameter, string key, RequestDelegateFactoryContext factoryContext)
2020private static Expression BindParameterFromBindAsync(ParameterInfo parameter, RequestDelegateFactoryContext factoryContext)
2096ParameterInfo parameter,
2111ParameterInfo parameter,
2137var parameter = factoryContext.Parameters[i];
2148ParameterInfo parameter,
2279ParameterInfo parameter,
2295ParameterInfo parameter,
2314private static Expression BindParameterFromBody(ParameterInfo parameter, bool allowEmpty, RequestDelegateFactoryContext factoryContext)
2398private static bool IsOptionalParameter(ParameterInfo parameter, RequestDelegateFactoryContext factoryContext)
src\Shared\ParameterBindingMethodCache.cs (8)
47private readonly ConcurrentDictionary<Type, (Func<ParameterInfo, Expression>?, int)> _bindAsyncMethodCallCache = new();
75public bool HasBindAsyncMethod(ParameterInfo parameter) =>
216public (Expression? Expression, int ParamCount) FindBindAsyncMethod(ParameterInfo parameter)
218(Func<ParameterInfo, Expression>?, int) Finder(Type nonNullableParameterType)
226methodInfo = GetStaticMethodFromHierarchy(nonNullableParameterType, "BindAsync", new[] { typeof(HttpContext), typeof(ParameterInfo) }, ValidateReturnType);
424private static ValueTask<TValue?> BindAsync<TValue>(HttpContext httpContext, ParameterInfo parameter)
734public ConstructorParameter(ParameterInfo parameter, PropertyInfo propertyInfo)
740public ParameterInfo ParameterInfo { get; }
Microsoft.AspNetCore.Http.Extensions.Tests (81)
ParameterBindingMethodCacheTests.cs (34)
162public void HasTryParseStringMethod_ReturnsTrueWhenMethodExists(ParameterInfo parameterInfo)
340public void HasBindAsyncMethod_ReturnsTrueWhenMethodExists(ParameterInfo parameterInfo)
348var parameterInfo = GetFirstParameter((NullableReturningBindAsyncStruct arg) => NullableReturningBindAsyncStructMethod(arg));
355var parameterInfo = GetFirstParameter((BindAsyncFromImplicitStaticAbstractInterface arg) => BindAsyncFromImplicitStaticAbstractInterfaceMethod(arg));
362var parameterInfo = GetFirstParameter((BindAsyncFromExplicitStaticAbstractInterface arg) => BindAsyncFromExplicitStaticAbstractInterfaceMethod(arg));
369var parameterInfo = GetFirstParameter((BindAsyncFromStaticAbstractInterfaceAndBindAsync arg) => BindAsyncFromImplicitStaticAbstractInterfaceMethodInsteadOfReflectionMatchedMethod(arg));
376var parameterInfo = GetFirstParameter((BindAsyncStruct? arg) => BindAsyncNullableStructMethod(arg));
383var parameterInfo = GetFirstParameter((BindAsyncFromImplicitStaticAbstractInterface arg) => BindAsyncFromImplicitStaticAbstractInterfaceMethod(arg));
401var parameterInfo = GetFirstParameter((BindAsyncFromExplicitStaticAbstractInterface arg) => BindAsyncFromExplicitStaticAbstractInterfaceMethod(arg));
419var parameterInfo = GetFirstParameter((BindAsyncFallsBack? arg) => BindAsyncFallbackMethod(arg));
435var parameterInfo = GetFirstParameter((BindAsyncBadMethod? arg) => BindAsyncBadMethodMethod(arg));
451var parameterInfo = GetFirstParameter((BindAsyncFromStaticAbstractInterfaceAndBindAsync arg) => BindAsyncFromImplicitStaticAbstractInterfaceMethodInsteadOfReflectionMatchedMethod(arg));
752private static ParameterInfo GetFirstParameter<T>(Expression<Action<T>> expr)
758private static ParameterInfo GetParameterAtIndex<T>(Expression<Action<T>> expr, int paramIndex)
1077public static ValueTask<BindAsyncRecord?> BindAsync(HttpContext context, ParameterInfo parameter)
1093public static ValueTask<BindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter)
1109public static ValueTask<NullableReturningBindAsyncStruct?> BindAsync(HttpContext context, ParameterInfo parameter) =>
1141public static Task<InvalidWrongReturnBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter) =>
1147public static Task<InvalidWrongReturnBindAsyncClass> BindAsync(HttpContext context, ParameterInfo parameter) =>
1153public static ValueTask<InvalidWrongParamBindAsyncStruct> BindAsync(ParameterInfo parameter) =>
1159public static Task<InvalidWrongParamBindAsyncClass> BindAsync(ParameterInfo parameter) =>
1165public static ValueTask<BindAsyncStructWithGoodAndBad> BindAsync(HttpContext context, ParameterInfo parameter) =>
1168public static ValueTask<BindAsyncStructWithGoodAndBad> BindAsync(ParameterInfo parameter) =>
1174public static ValueTask<BindAsyncClassWithGoodAndBad> BindAsync(HttpContext context, ParameterInfo parameter) =>
1177public static ValueTask<BindAsyncClassWithGoodAndBad> BindAsync(ParameterInfo parameter) =>
1200public static ValueTask<T?> BindAsync(HttpContext context, ParameterInfo parameter)
1270static ValueTask<T?> BindAsync(HttpContext context, ParameterInfo parameter)
1282public static void BindAsync(HttpContext context, ParameterInfo parameter)
1293public static void BindAsync(HttpContext context, ParameterInfo parameter)
1299public static void BindAsync(HttpContext context, ParameterInfo parameter)
1467public static ValueTask<BindAsyncFromImplicitStaticAbstractInterface?> BindAsync(HttpContext context, ParameterInfo parameter)
1475static ValueTask<BindAsyncFromExplicitStaticAbstractInterface?> IBindableFromHttpContext<BindAsyncFromExplicitStaticAbstractInterface>.BindAsync(HttpContext context, ParameterInfo parameter)
1491public static ValueTask<BindAsyncFromStaticAbstractInterfaceAndBindAsync?> BindAsync(HttpContext context, ParameterInfo parameter)
1505public static ValueTask<BindAsyncFromImplicitStaticAbstractInterface?> BindAsync(HttpContext context, ParameterInfo parameter)
RequestDelegateFactoryTests.cs (16)
415public static ValueTask<MyBindAsyncRecord?> BindAsync(HttpContext context, ParameterInfo parameter)
436public static ValueTask<MyNullableBindAsyncStruct?> BindAsync(HttpContext context, ParameterInfo parameter)
452public static ValueTask<MyBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter)
473public static async ValueTask<MyAwaitedBindAsyncRecord?> BindAsync(HttpContext context, ParameterInfo parameter)
491public static async ValueTask<MyAwaitedBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter)
509public static ValueTask<MyBothBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter)
1000public static Task<BadBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter) =>
1006public static Task<BadBindAsyncClass> BindAsync(HttpContext context, ParameterInfo parameter) =>
2138var parameter = action.Method.GetParameters()[0];
3386public static ValueTask<AccessesServicesMetadataBinder> BindAsync(HttpContext context, ParameterInfo parameter) =>
3448public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
3504public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
3529public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
3550public static ValueTask<AddsCustomParameterMetadataBindable> BindAsync(HttpContext context, ParameterInfo parameter) => default;
3552public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
3622public static async ValueTask<JsonTodo?> BindAsync(HttpContext context, ParameterInfo parameter)
RequestDelegateGenerator\SharedTypes.cs (23)
32public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
89public static async ValueTask<JsonTodo?> BindAsync(HttpContext context, ParameterInfo parameter)
207public static async ValueTask<CustomTodo?> BindAsync(HttpContext context, ParameterInfo parameter)
220public static ValueTask<MyBindAsyncRecord?> BindAsync(HttpContext context, ParameterInfo parameter)
247public static ValueTask<MyNullableBindAsyncStruct?> BindAsync(HttpContext context, ParameterInfo parameter)
272public static ValueTask<MyBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter)
299public static ValueTask<MyBothBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter)
375public static ValueTask<MyBindAsyncRecord?> BindAsync(HttpContext context, ParameterInfo parameter) =>
420public static ValueTask<BindAsyncFromImplicitStaticAbstractInterface?> BindAsync(HttpContext context, ParameterInfo parameter)
444static ValueTask<BindAsyncFromExplicitStaticAbstractInterface?> IBindableFromHttpContext<BindAsyncFromExplicitStaticAbstractInterface>.BindAsync(HttpContext context, ParameterInfo parameter)
466public static ValueTask<BindAsyncFromImplicitStaticAbstractInterface?> BindAsync(HttpContext context, ParameterInfo parameter) =>
472public static ValueTask<MyBindAsyncTypeThatThrows?> BindAsync(HttpContext context, ParameterInfo parameter) =>
562public static ValueTask<AddsCustomParameterMetadataBindable> BindAsync(HttpContext context, ParameterInfo parameter) => default;
564public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
599public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
612public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
647public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
685public static ValueTask<AccessesServicesMetadataBinder> BindAsync(HttpContext context, ParameterInfo parameter) =>
1059public static async ValueTask<BindableWithMismatchedNullability<T?>> BindAsync(HttpContext httpContext, ParameterInfo parameter)
1075public static async ValueTask<BindableStructWithMismatchedNullability<T?>> BindAsync(HttpContext httpContext, ParameterInfo parameter)
1084public static async ValueTask<BindableClassWithNullReturn?> BindAsync(HttpContext httpContext, ParameterInfo parameter)
1093public static async ValueTask<BindableStructWithNullReturn?> BindAsync(HttpContext httpContext, ParameterInfo parameter)
1109public static async ValueTask<BindableStruct> BindAsync(HttpContext httpContext, ParameterInfo parameter)
Microsoft.AspNetCore.Http.Microbenchmarks (24)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (23)
32public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
89public static async ValueTask<JsonTodo?> BindAsync(HttpContext context, ParameterInfo parameter)
207public static async ValueTask<CustomTodo?> BindAsync(HttpContext context, ParameterInfo parameter)
220public static ValueTask<MyBindAsyncRecord?> BindAsync(HttpContext context, ParameterInfo parameter)
247public static ValueTask<MyNullableBindAsyncStruct?> BindAsync(HttpContext context, ParameterInfo parameter)
272public static ValueTask<MyBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter)
299public static ValueTask<MyBothBindAsyncStruct> BindAsync(HttpContext context, ParameterInfo parameter)
375public static ValueTask<MyBindAsyncRecord?> BindAsync(HttpContext context, ParameterInfo parameter) =>
420public static ValueTask<BindAsyncFromImplicitStaticAbstractInterface?> BindAsync(HttpContext context, ParameterInfo parameter)
444static ValueTask<BindAsyncFromExplicitStaticAbstractInterface?> IBindableFromHttpContext<BindAsyncFromExplicitStaticAbstractInterface>.BindAsync(HttpContext context, ParameterInfo parameter)
466public static ValueTask<BindAsyncFromImplicitStaticAbstractInterface?> BindAsync(HttpContext context, ParameterInfo parameter) =>
472public static ValueTask<MyBindAsyncTypeThatThrows?> BindAsync(HttpContext context, ParameterInfo parameter) =>
562public static ValueTask<AddsCustomParameterMetadataBindable> BindAsync(HttpContext context, ParameterInfo parameter) => default;
564public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
599public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
612public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
647public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder)
685public static ValueTask<AccessesServicesMetadataBinder> BindAsync(HttpContext context, ParameterInfo parameter) =>
1059public static async ValueTask<BindableWithMismatchedNullability<T?>> BindAsync(HttpContext httpContext, ParameterInfo parameter)
1075public static async ValueTask<BindableStructWithMismatchedNullability<T?>> BindAsync(HttpContext httpContext, ParameterInfo parameter)
1084public static async ValueTask<BindableClassWithNullReturn?> BindAsync(HttpContext httpContext, ParameterInfo parameter)
1093public static async ValueTask<BindableStructWithNullReturn?> BindAsync(HttpContext httpContext, ParameterInfo parameter)
1109public static async ValueTask<BindableStruct> BindAsync(HttpContext httpContext, ParameterInfo parameter)
Microsoft.AspNetCore.JsonPatch (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.Mvc.Abstractions (16)
src\Shared\ParameterBindingMethodCache.cs (8)
47private readonly ConcurrentDictionary<Type, (Func<ParameterInfo, Expression>?, int)> _bindAsyncMethodCallCache = new();
75public bool HasBindAsyncMethod(ParameterInfo parameter) =>
216public (Expression? Expression, int ParamCount) FindBindAsyncMethod(ParameterInfo parameter)
218(Func<ParameterInfo, Expression>?, int) Finder(Type nonNullableParameterType)
226methodInfo = GetStaticMethodFromHierarchy(nonNullableParameterType, "BindAsync", new[] { typeof(HttpContext), typeof(ParameterInfo) }, ValidateReturnType);
424private static ValueTask<TValue?> BindAsync<TValue>(HttpContext httpContext, ParameterInfo parameter)
734public ConstructorParameter(ParameterInfo parameter, PropertyInfo propertyInfo)
740public ParameterInfo ParameterInfo { get; }
Microsoft.AspNetCore.Mvc.Abstractions.Test (6)
Microsoft.AspNetCore.Mvc.ApiExplorer (12)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (5)
Microsoft.AspNetCore.Mvc.Core (37)
Microsoft.AspNetCore.Mvc.Core.Test (50)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (7)
Microsoft.AspNetCore.Mvc.IntegrationTests (26)
Microsoft.AspNetCore.Mvc.RazorPages (9)
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi (25)
src\Shared\ParameterBindingMethodCache.cs (8)
47private readonly ConcurrentDictionary<Type, (Func<ParameterInfo, Expression>?, int)> _bindAsyncMethodCallCache = new();
75public bool HasBindAsyncMethod(ParameterInfo parameter) =>
216public (Expression? Expression, int ParamCount) FindBindAsyncMethod(ParameterInfo parameter)
218(Func<ParameterInfo, Expression>?, int) Finder(Type nonNullableParameterType)
226methodInfo = GetStaticMethodFromHierarchy(nonNullableParameterType, "BindAsync", new[] { typeof(HttpContext), typeof(ParameterInfo) }, ValidateReturnType);
424private static ValueTask<TValue?> BindAsync<TValue>(HttpContext httpContext, ParameterInfo parameter)
734public ConstructorParameter(ParameterInfo parameter, PropertyInfo propertyInfo)
740public ParameterInfo ParameterInfo { get; }
Microsoft.AspNetCore.OpenApi.Tests (2)
Microsoft.AspNetCore.Routing (6)
Microsoft.AspNetCore.Routing.Tests (2)
Microsoft.AspNetCore.Shared.Tests (7)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CSharp (16)
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.Extensions.AI.Abstractions (27)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.Configuration.Binder (11)
Microsoft.Extensions.DependencyInjection (8)
Microsoft.Extensions.DependencyInjection.Abstractions (10)
Microsoft.Extensions.Validation (5)
Microsoft.Extensions.Validation.Tests (17)
Microsoft.Maui.Controls (5)
Microsoft.Maui.Controls.Xaml (2)
Microsoft.ML.Core (2)
Microsoft.ML.Data (2)
Microsoft.VisualBasic.Core (79)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (29)
40ByVal leftSignature As ParameterInfo(),
42ByVal rightSignature As ParameterInfo(),
45Dim longerSignature As ParameterInfo()
46Dim shorterSignature As ParameterInfo()
122ByVal leftParameter As ParameterInfo,
125ByVal rightParameter As ParameterInfo,
219ByVal leftParameter As ParameterInfo,
220ByVal rawLeftParameter As ParameterInfo,
223ByVal rightParameter As ParameterInfo,
224ByVal rawRightParameter As ParameterInfo,
291ByVal leftParameter As ParameterInfo,
292ByVal rawLeftParameter As ParameterInfo,
295ByVal rightParameter As ParameterInfo,
296ByVal rawRightParameter As ParameterInfo,
480ByVal newCandidateSignature As ParameterInfo(),
556Dim existingCandidateSignature As ParameterInfo() = existing.Parameters
754Dim candidateSignature As ParameterInfo() = Nothing
792Dim setParameters As ParameterInfo() = setMethod.GetParameters
793candidateSignature = New ParameterInfo(setParameters.Length - 2) {}
1214ByVal parameter As ParameterInfo) As Boolean
1234ByVal parameter As ParameterInfo,
1305ByVal parameter As ParameterInfo,
1339ByVal parameter As ParameterInfo,
1381Private Shared Function FindParameterByName(ByVal parameters As ParameterInfo(), ByVal name As String, ByRef index As Integer) As Boolean
1448Dim parameters As ParameterInfo() = targetProcedure.Parameters
1713Dim parameters As ParameterInfo() = targetProcedure.Parameters
1755Dim paramArrayParameter As ParameterInfo = parameters(paramIndex)
1855Dim parameters As ParameterInfo() = targetProcedure.RawParameters
2009Dim parameters As ParameterInfo() = targetProcedure.Parameters
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (11)
152Dim LastParam As ParameterInfo
155Dim Parameters() As ParameterInfo
1109Dim parms() As ParameterInfo = SelectedMatch.GetParameters()
1258Dim AmbigParams() As ParameterInfo
1259Dim Parameters() As ParameterInfo
1477Private Function MatchesParamArraySignature(ByVal param0 As ParameterInfo(), ByVal param1 As ParameterInfo(), ByVal ParamArrayIndex1 As Integer, ByVal IsPropertySet As Boolean, ByVal ArgCountUpperBound As Integer) As Boolean
1515Dim p1(), p2() As ParameterInfo
1607Dim Parameters, AmbigParams As ParameterInfo()
1769Private Function BindingScore(ByVal Parameters() As ParameterInfo, ByVal paramOrder() As Integer, ByVal ArgTypes() As Type, ByVal IsPropertySet As Boolean, ByVal ParamArrayIndex As Integer) As BindScore
1875Private Function CreateParamOrder(ByVal SetProp As Boolean, ByVal paramOrder() As Integer, ByVal pars() As ParameterInfo, ByVal args() As Object, ByVal names() As String) As Exception
MinimalSample (1)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (11)
PresentationFramework (21)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (42)
System.ComponentModel.Composition.Registration (17)
System.Composition.AttributedModel (1)
System.Composition.Convention (16)
System.Composition.TypedParts (13)
System.Configuration.ConfigurationManager (2)
System.Linq.Expressions (90)
System\Dynamic\Utils\ExpressionUtils.cs (6)
104ParameterInfo[] pis = GetParametersForValidation(method, nodeKind);
112ParameterInfo pi = pis[i];
134public static void ValidateArgumentCount(MethodBase method, ExpressionType nodeKind, int count, ParameterInfo[] pis)
154public static Expression ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arguments, ParameterInfo pi, string? methodParamName, string argumentParamName, int index = -1)
235internal static ParameterInfo[] GetParametersForValidation(MethodBase method, ExpressionType nodeKind)
237ParameterInfo[] pis = method.GetParametersCached();
System\Linq\Expressions\MethodCallExpression.cs (15)
846ParameterInfo[] pis = ValidateMethodAndGetParameters(null, method);
864ParameterInfo[] pis = ValidateMethodAndGetParameters(null, method);
886ParameterInfo[] pis = ValidateMethodAndGetParameters(null, method);
911ParameterInfo[] pis = ValidateMethodAndGetParameters(null, method);
939ParameterInfo[] pis = ValidateMethodAndGetParameters(null, method);
971ParameterInfo[] pis = ValidateMethodAndGetParameters(null, method);
1016ParameterInfo[] pis = ValidateMethodAndGetParameters(instance, method);
1054ParameterInfo[] pis = ValidateMethodAndGetParameters(instance, method);
1082ParameterInfo[] pis = ValidateMethodAndGetParameters(instance, method);
1113ParameterInfo[] pis = ValidateMethodAndGetParameters(instance, method);
1239private static ParameterInfo[] ValidateMethodAndGetParameters(Expression? instance, MethodInfo method)
1274private static ParameterInfo[] GetParametersForValidation(MethodBase method, ExpressionType nodeKind)
1279private static void ValidateArgumentCount(MethodBase method, ExpressionType nodeKind, int count, ParameterInfo[] pis)
1284private static Expression ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arg, ParameterInfo pi, string methodParamName, string argumentParamName)
1349ParameterInfo[] parms = m.GetParametersCached();
System.Linq.Queryable (7)
System.Private.CoreLib (129)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeExtensions.cs (12)
23public static Attribute? GetCustomAttribute(this ParameterInfo element, Type attributeType)
40public static T? GetCustomAttribute<T>(this ParameterInfo element) where T : Attribute
49public static Attribute? GetCustomAttribute(this ParameterInfo element, Type attributeType, bool inherit)
58public static T? GetCustomAttribute<T>(this ParameterInfo element, bool inherit) where T : Attribute
77public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element)
86public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, bool inherit)
105public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, Type attributeType)
122public static IEnumerable<T> GetCustomAttributes<T>(this ParameterInfo element) where T : Attribute
131public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, Type attributeType, bool inherit)
140public static IEnumerable<T> GetCustomAttributes<T>(this ParameterInfo element, bool inherit) where T : Attribute
159public static bool IsDefined(this ParameterInfo element, Type attributeType)
168public static bool IsDefined(this ParameterInfo element, Type attributeType, bool inherit)
src\System\Attribute.CoreCLR.cs (15)
209private static ParameterInfo? GetParentDefinition(ParameterInfo param)
237private static Attribute[] InternalParamGetCustomAttributes(ParameterInfo param, Type? type, bool inherit)
276ParameterInfo? baseParam = GetParentDefinition(param);
326private static bool InternalParamIsDefined(ParameterInfo param, Type type, bool inherit)
343ParameterInfo? baseParam = GetParentDefinition(param);
382ParameterInfo[] indexParams = element.GetIndexParameters();
527public static Attribute[] GetCustomAttributes(ParameterInfo element)
532public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType)
537public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType, bool inherit)
555public static Attribute[] GetCustomAttributes(ParameterInfo element, bool inherit)
569public static bool IsDefined(ParameterInfo element, Type attributeType)
574public static bool IsDefined(ParameterInfo element, Type attributeType, bool inherit)
603public static Attribute? GetCustomAttribute(ParameterInfo element, Type attributeType)
608public static Attribute? GetCustomAttribute(ParameterInfo element, Type attributeType, bool inherit)
src\System\Reflection\RuntimeParameterInfo.cs (8)
14internal static ParameterInfo[] GetParameters(IRuntimeMethodInfo method, MemberInfo member, Signature sig)
21internal static ParameterInfo GetReturnParameter(IRuntimeMethodInfo method, MemberInfo member, Signature sig)
25GetParameters(method, member, sig, out ParameterInfo? returnParameter, fetchReturnParameter: true);
29private static ParameterInfo[] GetParameters(
30IRuntimeMethodInfo methodHandle, MemberInfo member, Signature sig, out ParameterInfo? returnParameter, bool fetchReturnParameter)
39ParameterInfo[] args =
41sigArgCount == 0 ? Array.Empty<ParameterInfo>() :
42new ParameterInfo[sigArgCount];
System.Private.DataContractSerialization (6)
System.Private.Windows.Core (1)
System.Private.Xml (8)
System.Reflection (1)
System.Reflection.Context (37)
System.Reflection.DispatchProxy (1)
System.Reflection.Emit (15)
System.Reflection.MetadataLoadContext (21)
System.Resources.Extensions (1)
System.Runtime (1)
System.Runtime.InteropServices (1)
System.Runtime.Serialization.Formatters (1)
System.ServiceModel.Primitives (46)
System.Text.Json (12)
System.Windows.Forms (1)
System.Windows.Forms.Design (6)
System.Xaml (34)
System.Xaml.Tests (9)