I can't realize, how protected methods of the interface are works. I have interface and class with the protected methods: Platform - .Net Core 5
public interface ISomeInterface
{
protected void Method_InterfaceRealization()
{
Console.WriteLine("JUST Inside interface realization PROTECTED");
}
protected void Method1();
}
public class SomeClass: ISomeInterface
{
void ISomeInterface.Method1()
{
Console.WriteLine("Method_PROTECTED_NoInterfaceRealization");
}
}
- How can I call Method_InterfaceRealization method outside of the interface?
- How can I call this Method1 anywhere? Thanks a lot!