Why can't a class extend its own nested class in C#?
问题 For example: public class A : A.B { public class B { } } Which generates this error from the compiler: Circular base class dependency involving 'A' and 'A.B' I always figured a nested class behaved just like a regular class except with special rules concerning accessing the outer class's private members, but I guess there's some implicit inheritance occurring between the two classes? 回答1: There's no implicit inheritance involved as far as I can tell. I would have expected this to be okay -