does not implement interface member

后端 未结 2 1805
别那么骄傲
别那么骄傲 2020-12-11 16:21

Hi I have the following code but I keep getting the error:

\'JsonWcfService.GetVenues\' does not implement interface member \'GetVenuesByLocation(string search)\'.

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 16:57

    Your class GetVenues does not implement the method mentioned in your error message. Where exactly are you stuck? GetVenuesByLocation(string search) is defined in the class Venue.

    I have noticed that this question is starting to garner interest. The issue here is very easy: your class does not implement (even if it's abstract, you have to define them) all methods defined in the interface. Your IDE should warn you of this before compiling.

提交回复
热议问题