Visual studio tells me that I dont implement the methods if I dont declare them “explicitly” in terms of interface.
Here are my methods:
public interface IGetMenus
{
List<Menu> GetMyMenus();
void InsertMenu(string topic, string subTopic);
void UpdateMainMenu(int menu_id, string topic);
void UpdateSubMenu(int menu_id, string topic);
}
Here is an example of how visual studio wants me to implement the interface:
List<Menu> IGetMenus.GetMyMenus()
{
}
Why is that?
Usually the reason is that you have a method with the same name + parameters but a different return type already.
In C# this is not valid, the only way to implement the interface in this case is to do it explicitly or move/rename the other method.