5 references to HasTryParseMethod
Microsoft.AspNetCore.Http.Extensions (4)
RequestDelegateFactory.cs (4)
796ParameterBindingMethodCache.Instance.HasTryParseMethod(parameter.ParameterType) || 799ParameterBindingMethodCache.Instance.HasTryParseMethod(parameter.ParameterType.GetElementType()!))); 880else if (parameter.ParameterType == typeof(string) || ParameterBindingMethodCache.Instance.HasTryParseMethod(parameter.ParameterType)) 910(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));