I was experimenting with an alternative for the friend keyword in c#.
(Based on Why does C# not provide the C++ style 'friend' keyword?). Resulting with this code:
public class ParentClass
{
private interface IChild
{
void Fn();
}
public class Child : IChild
{
void IChild.Fn() { }
}
}
The Method Fncan only be accessed by the ParentClass and the Child. (As Expected)
My Question:
What Accessibility Level has Fn? public, private, protected, internal, private internal and protected internal gave all errors.