protected Type? GetCurrentActivityViewModelType() { Type? currentActivityType = CurrentActivity?.GetType(); var activityViewModelType = ViewModelTypeFinder.FindTypeOrNull(currentActivityType); return activityViewModelType; }
protected Type?GetCurrentActivityViewModelType() { Type?currentActivityType = null; if (CurrentActivity.IsActivityAlive()) { currentActivityType = CurrentActivity !.GetType(); } var activityViewModelType = ViewModelTypeFinder?.FindTypeOrNull(currentActivityType); return(activityViewModelType); }
protected Type?GetCurrentActivityViewModelType() { Type?currentActivityType = null; if (CurrentActivity.IsActivityAlive()) { currentActivityType = CurrentActivity !.GetType(); } if (currentActivityType == null) { return(null); } return(ViewModelTypeFinder?.FindTypeOrNull(currentActivityType)); }
protected Type GetAssociatedViewModelType(Type fromFragmentType) { Type viewModelType = ViewModelTypeFinder.FindTypeOrNull(fromFragmentType); return(viewModelType ?? fromFragmentType.GetBasePresentationAttributes().First().ViewModelType); }