Open abhishekluv opened 6 years ago
var menuItems = _menuService.GetMenuParts(menuPart.Menu.Id) .Where(x => x.MenuPosition.StartsWith(menuPart.MenuPosition + ".")) .Select(x => x.As<MenuPart>()) .ToList();
StartsWith is culture-aware and missing a stringcomparison argument. Is it necessary to pass the StringComparison argument?
Can you provide a repro of the issue? I'd like to understand what the problem is, even though adding a String comparison should be fine.
var menuItems = _menuService.GetMenuParts(menuPart.Menu.Id) .Where(x => x.MenuPosition.StartsWith(menuPart.MenuPosition + ".")) .Select(x => x.As<MenuPart>()) .ToList();
StartsWith is culture-aware and missing a stringcomparison argument. Is it necessary to pass the StringComparison argument?