does not implement interface member

后端 未结 2 1793
别那么骄傲
别那么骄傲 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.

    0 讨论(0)
  • 2020-12-11 17:01

    Second function is inside the class Venue not in GetVenues, move it to GetVenues

    0 讨论(0)
提交回复
热议问题