Hi so i have one interface with 2 methods which is implemented by an abstract class and one partial class in 2 separate file which extends the abstract class
Ex:
public inteface Iterface
{
void A();
void B();
}
public abstract class Abstract : Interface
{
public abstract A();
public abstract B();
}
// Partial1.cs
public partial class Partial : Abstract
{
public override A(){}
}
// Partial2.cs
public partial class Partial : Abstract
{
public override B(){}
}
I get the error that Partial does not implement Abstract correctly, how come? If i would add to Partial1.cs the B() so that i would have
// Partial1.cs
public partial class Partial : Abstract
{
public override A(){}
public override B(){}
}
all good, but why i am not allowed to implement the Abstract method in whatever file containing the Partial i want?
I've tried also with the following
// Partial1.cs
public partial class Partial : Abstract
{
public override A(){}
}
// Partial2.cs
public partial class Partial
{
public override B(){}
}
Initially i wanted just to use the Interface but i had the same error "Partial class does not implement Interface correctly" so i though that maybe i cannot do so.
Is there any way of doing what i'm trying here? Implement the methods in whichever Partial class file i want ?
Thank you