c# - How can I make a class both implement an Interface and inherit from another class -


i want class implement interface , additional properties auditable table. can both? have tried here getting error in ide.

public partial class objectivedetail : iequatable<objectivedetail>, auditabletable {     ... }  public abstract class auditabletable : iauditabletable {     ... } 

you must change

public partial class objectivedetail : iequatable<objectivedetail>,  auditabletable 

to

public partial class objectivedetail :   auditabletable, iequatable<objectivedetail> 

in c#, can inherit one class , implement multiple interfaces , must put class first.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -