h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

C# Internal Interface

C# Internal Interface

          you can not declare Encapsulation in the Interface like Public
Example for Internal Interface.
Here , One class and Two Interface in the coding.
Class Name:MyClass
Interface Names :IMyPublicInterface,IMyInternalInterface

Create  Normal  interface

public interface IMyPublicInterface
{
    void MyPublicMethod();
}
Create  Internal  interface
internal interface IMyInternalInterface
{
    void MyInternalMethod();
}
Inherited two interface into One class using Colon(:)
public class MyClass :
    IMyPublicInterface, IMyInternalInterface
{
/// Called interface methods in the Class
    public void MyPublicMethod() { }
    void IMyInternalInterface.MyInternalMethod() { }
}