Mvc 278 B

12345678910111213141516171819202122
  1. commit 05d729b4098a4f9015c88aaae680dcb0cf072480
  2. Author: Turner Bass <[email protected]>
  3. Date: Thu Oct 11 16:41:48 2018 -0500
  4. UrlHelperBase L166-167 declared type of url in TryFastGenerateUrl
  5. diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Routing/UrlHelperBase.cs b/src/Microsoft.AspNetCore.Mvc.Core/Routing/UrlHelperBase.cs
  6. index c468e5280c1..6f377c3dd44 100644
  7. --- a/src/Microsoft.AspNetCore.Mvc.Core/Routing/UrlHelperBase.cs
  8. +++ b/src/Microsoft.AspNetCore.Mvc.Core/Routing/UrlHelperBase.cs
  9. @@ -162,9 +162,8 @@ namespace Microsoft.AspNetCore.Mvc.Routing
  10. // Perf: In most of the common cases, GenerateUrl is called with a null protocol, host and fragment.
  11. // In such cases, we might not need to build any URL as the url generated is mostly same as the virtual path available in pathData.
  12. - // For such common cases, this FastGenerateUrl method saves a string allocation per GenerateUrl call.
  13. - string url;
  14. - if (TryFastGenerateUrl(protocol, host, virtualPath, fragment, out url))
  15. + // For such common cases, this FastGenerateUrl method saves a string allocation per GenerateUrl call.
  16. + if (TryFastGenerateUrl(protocol, host, virtualPath, fragment, out string url))
  17. {
  18. return url;
  19. }