Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
You can have as many classes in a file as you want... you can even have nested classes. Basically, with VB.NET, you can have a 1 file to 1 class relationship, or you can have a multiple file to 1 class relationship (partial classes... part of the class exists in each file), or you can have a 1 file to multiple class relationship. The code file does not define a class... the Public Class <ClassName> and End Class do. Open up one of the .designer.vb files for one of your business objects and drop down the left combo box at the top of the file... you'll see how many classes exist in that one file. And besides the business object, they're all nested.
|