Skip to content

Can this be used where an aspect only partially implements the interface that the parent class is implementing? #17

Open
@waxingsatirical

Description

@waxingsatirical
interface IPrintableComplex
{
   void Print();
   void PrintComplex();
}
public class SimplePrinter
{
   public void Print() { Console.WriteLine("OK"); }
}
public partial class Person : IPrintableComplex
{
   [BeaKona.AutoInterface(typeof(IPrintableComplex))]
   private readonly SimplePrinter aspect1 = new SimplePrinter();

   public void PrintComplex() { Console.WriteLine("Oh, K."); }
}

If I write this at the moment, I just get an error saying that SimplePrinter doesn't implement IPrintableComplex. What would be useful for me is if the generator could just generate the methods that SimplePrinter does have, then I can fill in the rest inside the Person class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions