Question public inrerface IDbDepy

Anwind

Well-known member
Joined
Nov 6, 2021
Messages
48
Programming Experience
1-3
Hello.

error CS0535 'Class' does not implement interface ...

SDependency.cs and ODbdependency.cs File are different Files.
 
Last edited:
Please ensure that you appropriately format all code snippets for readability. Make sure that your code is indented properly and use CODE tags to display it with that indenting.
 
Your interface has two methods but both your classes only have one method, therefore neither of them implement the interface. Either both classes need to implement both methods or the interface needs to have one method that both classes implement.
 
Back
Top Bottom