Hi!
You have an interface that looks like this
public interface IViewModelBuilder<T> where T : IViewModel
{
}
You are using this (im guessing) to register all ViewModelbuilders.
The generic type is here declarated to be of type IViewModel.
So far so good, straight forward im with you.
But when we come to the HeadViewModelBuilder (as one example) you have declarated it as below:
public class HeadViewModelBuilder<TViewModel> : IViewModelBuilder<TViewModel>
where TViewModel : HeadViewModel
but I don’t see why it’s not just
public class HeadViewModelBuilder : IViewModelBuilder<HeadViewModel>
Like almost every other ViewModelBuilder.
So why is there a declaration like this for this one and a few others, why are there a few exception from the rest of the viewmodel builders?
Litium version: 8.3.0