Class inside a class, except with seperate files?

gprime

New member
Joined
Jun 27, 2007
Messages
2
Programming Experience
Beginner
Hi!

I was wondering how to do this:

Say I have this in one file:

VB.NET:
Pubic Class MyFirst

  Stuff...

  Public Class MySecond

      More Stuff

  End Class

End Class


How would I go about doing that If I want to have MyFirst and MySecond in their own files?

Thanks!
 
You can't do that with .Net 1.1, partial classes is new with .Net 2.0.

If you're thinking about how the Framework itself is organized, then this is mainly done with Namespaces.
 
Oh okay, thank you.

The reason I ask is because I have a LOT of these classes embedded inside eachother that need to be called as such:

a.b.c.d()

I want to have a, b, c, and d as their own files rather than continously embed them inside eachother in one file.

That's unfortunate that I can't do that in 1.1. Thanks though!
 
Back
Top