Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to finilize a dll which incorporates xaml and C# files.

Thus I'd like to exposes only a few commands to the user.

I am using the ICommand interface which is declared as public. This means that I have to expose the ICommand implementation.

Can someone help me to conceal the ICommand implementation???

Actually it is a philosophical question whether interfaces are internal or public, or should there be two declarations of interfaces one internal and the other public?

Regards,

Igal
Posted
Updated 23-Sep-10 12:09pm
v2
Comments
Sandeep Mewara 23-Sep-10 6:12am    
Update from OP: I think that I have managed to conceal the class by setting the class as internal while the interface's implementation I left as public.

Though if someone could explain the meaning of an internal class implementing public methods, that will be excellent...

Regards,

Igal

1 solution

Ok. Just an example, no talking.
C#
internal class A
{
    // Must match definition in parent class (Object)
    public override string ToString()
    {
        return "A";
    }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900