Hi,
I have a main class called "c_Assets". In that class I have a few sub-classes:
I have made a list of the main classes (AssetsList as new list(of c_Assets))
I wanted this generic list to keep a main list of all the assets so I could easily select them. However, when I try to do this:
Assets.Add(New n_Toolset.c_Assets.Building())
It doesn't work because:
Can you help me work this out?
Cheers,
Bozzy
I have a main class called "c_Assets". In that class I have a few sub-classes:
- Building
- Terrain
- Scenic Object
I have made a list of the main classes (AssetsList as new list(of c_Assets))
I wanted this generic list to keep a main list of all the assets so I could easily select them. However, when I try to do this:
Assets.Add(New n_Toolset.c_Assets.Building())
It doesn't work because:
VB.NET:
Value of type 'n_Toolset.c_Assets.Building' cannot be converted to 'n_Toolset.c_Assets'.
Can you help me work this out?
Cheers,
Bozzy