public void OnNavigatingTo(NavigationParameters parameters) { ConstructorInjection = $"建構式注入 {_ServiceA.MethodA1()} Hash:{_ServiceA.GetHashCode()}"; PropertyInjection = $"屬性注入 {_ServiceB.MethodB1()} Hash:{_ServiceB.GetHashCode()}"; MethodInjection = $"方法注入 {_ServiceMethodB.MethodB1()} Hash:{_ServiceMethodB.GetHashCode()}"; //await _dialogService.DisplayAlertAsync("通知", "完成相依性注入練習", "打完收工"); }