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
Post a Comment