diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Builder/ReflectionSiteMapNodeProvider.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Builder/ReflectionSiteMapNodeProvider.cs index b3f1497f..770f023e 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Builder/ReflectionSiteMapNodeProvider.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Builder/ReflectionSiteMapNodeProvider.cs @@ -163,9 +163,8 @@ protected virtual ISiteMapNodeToParentRelation GetSiteMapNodeFromMvcSiteMapNodeA if (methodInfo == null) // try to find Index action { - var ms = type.FindMembers(MemberTypes.Method, BindingFlags.Instance | BindingFlags.Public, - (mi, o) => mi != null && string.Equals(mi.Name, "Index"), null); - foreach (MethodInfo m in ms.OfType()) + var ms = type.GetMethods(BindingFlags.Instance | BindingFlags.Public).Where(x => x.Name.Equals("Index")); + foreach (MethodInfo m in ms) { var pars = m.GetParameters(); if (pars.Length == 0)