15 references to FindTryParseMethod
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactory.cs (1)
1683var tryParseMethodCall = ParameterBindingMethodCache.Instance.FindTryParseMethod(nonNullableParameterType);
src\Shared\ParameterBindingMethodCache.cs (1)
70return FindTryParseMethod(nonNullableParameterType) is not null;
Microsoft.AspNetCore.Http.Extensions.Tests (13)
ParameterBindingMethodCacheTests.cs (13)
29var methodFound = new ParameterBindingMethodCache().FindTryParseMethod(@type); 47var methodFound = new ParameterBindingMethodCache().FindTryParseMethod(typeof(Uri)); 69var methodFound = new ParameterBindingMethodCache().FindTryParseMethod(@type); 101var methodFound = new ParameterBindingMethodCache().FindTryParseMethod(@type); 126var methodFound = new ParameterBindingMethodCache().FindTryParseMethod(@type); 171var methodFound = new ParameterBindingMethodCache().FindTryParseMethod(type); 179var methodFound = new ParameterBindingMethodCache().FindTryParseMethod(type); 200var methodFound = cache.FindTryParseMethod(type); 557() => new ParameterBindingMethodCache().FindTryParseMethod(type)); 567Assert.Null(new ParameterBindingMethodCache(throwOnInvalidMethod: false).FindTryParseMethod(type)); 574() => new ParameterBindingMethodCache().FindTryParseMethod(typeof(TryParseFromMultipleInterfaces))); 581Assert.Null(new ParameterBindingMethodCache(throwOnInvalidMethod: false).FindTryParseMethod(typeof(TryParseFromMultipleInterfaces))); 589var method = new ParameterBindingMethodCache().FindTryParseMethod(type);