Hi,
If those classes are only used by one class, why don't you declare them as
private to the master class?
/In the same vein you can declare your interface inside the Master class.
But even so it might be visible from the outside using Master.Interface
Now, if you change the interface for an abstract class inside the Master you
can get what you want:
public class Master
{
abstract class A
{
abstract public void Me();
}
class B : A
{
public override void Me()
{
throw new Exception("The method or operation is not
implemented.");
}
}
}
"~~~ .NET Ed ~~~" <tiredofspam@abolishspam.nowwrote in message
news:uaeVaIorHHA.4828@TK2MSFTNGP04.phx.gbl...
Quote:
>I am facing a problem. My project is composed of several assemblies. In one
>of them -the backend- I have several internal classes that must implement
>an interface. These internal classes are only used by one master class that
>is public.
>
I am able to declare the interface as "internal interface" without problem
but when I attempt to use it by declaring a class that implements it, if I
declare the implemented interface members as "internal" (they are supposed
to be seen only within the assemly) I get an error that it is not
implemented because of "wrong return type or wrong visibility" so
basically it is forcing me to use "public" which I don't want because I
don't want those methods to be seen outside.
>
Or... perhaps the public gets "downgraded" if you use an "internal"
attribute in the class declaration, at least that is what I am hoping for
but makes the notation a bit confusing.
>
Emilio
>