I have the following method:
protected Func<T> GetMenuItems<T>() where T : IMenuItem, new()
{
return () => _menuItems.GetMenuItem<T>();
}
It's the first time that I ever saw this syntax: return () => _menuItems.GetMenuItem<T>()
what are these parenthesis for and what do they do?