❔ Class with parameter as a generic parameter
Hi!
I'm trying to write a navigation system in wpf
My setup rn using default constructor is
however i want to change it so each ViewModelBase has a public custom constructor like
I've tried to do
but it breaks
I'm trying to write a navigation system in wpf
My setup rn using default constructor is
however i want to change it so each ViewModelBase has a public custom constructor like
TViewModel.NavigateTo() that returns its instance to be able to define some common logic between navigablesI've tried to do
but it breaks