1.

Can You Specify Nested Classes As Partial Classes?

Answer»

YES, nested CLASSES can be specified as PARTIAL classes even if the containing class is not partial. An example is SHOWN below.

class ContainerClass
{
PUBLIC partial class Nested
{
void Test1() { }
}
public partial class Nested
{
void Test2() { }
}
}

Yes, nested classes can be specified as partial classes even if the containing class is not partial. An example is shown below.

class ContainerClass
{
public partial class Nested
{
void Test1() { }
}
public partial class Nested
{
void Test2() { }
}
}



Discussion

No Comment Found