using System; namespace A { interface IA { int Foo (T value); } internal partial class C : IA { private abstract class NA { } int IA.Foo (NA value) { return 0; } static void Main () { } } } namespace A { internal partial class C : IA { private class NB { } int IA.Foo (NB value) { return 0; } } }