i want to generalize/abstract(or create interface) a class that implemented interfaces

  • Thread starter Thread starter essamce
  • Start date Start date
E

essamce

Guest
hi, here is my c# pseudo code:

public abstract class A
{
prop1;
prop2;
}
public interface B
{
prop3;
prop4;
}
public interface C
{
prop5;
prop6;
}

public class InstanceClass1 : A, B, C
{
prop3;
prop4;
prop5;
prop6;
}


i want to use InstanceClass1 as a prop in some class but i want to declare it as an abstraction something like:

public IInstanceClass1 x {get; set;}


how to abstract that class InstanceClass1,

any help will be appreciated ,thanks in advance,

Continue reading...
 
Back
Top