I am using a generic class called ViewModelCollection<BaseViewModel>
which handles a lists of ViewModels and delivers standard add()
and delete()
commands.
Now I'm wondering if I can "extend" this class using the partial
construct for a certain ViewModel, whose name is, say, CarViewModel
.
Is something like this possible?
partial class ViewModelCollection<BaseViewModel>
{
... some command and list stuff ...
}
partial class ViewModelCollection<CarViewModel>
{
... special commands for car view model
}