private StandardRouteActionMethodCache CreateStandardRouteCache() { var cache = new StandardRouteActionMethodCache(); cache.AliasedMethods = StandardRouteMethods.Where(IsMethodDecoratedWithAliasingAttribute).ToArray(); cache.NonAliasedMethods = StandardRouteMethods .Except(cache.AliasedMethods) .ToLookup(GetCanonicalMethodName, StringComparer.OrdinalIgnoreCase); return(cache); }
private StandardRouteActionMethodCache CreateStandardRouteCache() { var cache = new StandardRouteActionMethodCache(); cache.AliasedMethods = StandardRouteMethods.Where(IsMethodDecoratedWithAliasingAttribute).ToArray(); cache.NonAliasedMethods = StandardRouteMethods .Except(cache.AliasedMethods) .ToLookup(GetCanonicalMethodName, StringComparer.OrdinalIgnoreCase); return cache; }