internal partial class Class1
{
private class Class2 : ISomething, ISomethingElse
{
private class Class3 : ISomething
{
}
}
}
This article states that it's possible to make nested classes partial
even if their parent class is not partial. But then you can't separate them in several files, so I think you need to make Class2
partial
too and split just like you would with first-level classes, keeping the partial class
hierarchy.
I really hope that this question is just because of curiosity.
EDIT: Just tried this - works ok.
partial class c1
{
partial class c2
{
class c3
{
}
}
}
partial class c1
{
partial class c2
{
}
}