5 references to HasTryParseMethod
Microsoft.AspNetCore.Http.Extensions (4)
RequestDelegateFactory.cs (4)
797ParameterBindingMethodCache.Instance.HasTryParseMethod(parameter.ParameterType) || 798(parameter.ParameterType.IsArray && ParameterBindingMethodCache.Instance.HasTryParseMethod(parameter.ParameterType.GetElementType()!)); 879else if (parameter.ParameterType == typeof(string) || ParameterBindingMethodCache.Instance.HasTryParseMethod(parameter.ParameterType)) 909(parameter.ParameterType.IsArray && ParameterBindingMethodCache.Instance.HasTryParseMethod(parameter.ParameterType.GetElementType()!))))
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ParameterBindingMethodCacheTests.cs (1)
164Assert.True(new ParameterBindingMethodCache().HasTryParseMethod(parameterInfo.ParameterType));