X
Xarky
Hi,
I have the following scenario.
// This namespace is a class library
namespace test
{
Inteface A
{
void method1(...);
}
public abstract class B : A
{
public void method1(...)
{
...
}
}
public class DoIt : B
{
...
}
}
DoIt c = new DoIt(...);
c.method1(...); // can be accessed
From a console Application, I need to access the methods in Class
DoIt, but not the methods inherited from the interface and implemented
in the abstract class B. As they are now, method1 can be accessed
from a console application.
I tried to define these methods as internal or protected, but the
compiler complained with the following error.
'test.B' does not implement interface member 'test.A.method1()'.
'test.B.method1()' is either static, not public, or has the wrong
return type.
Can someone help me solve this out.
Thanks in Advance
I have the following scenario.
// This namespace is a class library
namespace test
{
Inteface A
{
void method1(...);
}
public abstract class B : A
{
public void method1(...)
{
...
}
}
public class DoIt : B
{
...
}
}
DoIt c = new DoIt(...);
c.method1(...); // can be accessed
From a console Application, I need to access the methods in Class
DoIt, but not the methods inherited from the interface and implemented
in the abstract class B. As they are now, method1 can be accessed
from a console application.
I tried to define these methods as internal or protected, but the
compiler complained with the following error.
'test.B' does not implement interface member 'test.A.method1()'.
'test.B.method1()' is either static, not public, or has the wrong
return type.
Can someone help me solve this out.
Thanks in Advance