public void Dispose() { if (subjectRepository != null) { subjectRepository.Dispose(); } }
private void Page_Unloaded(object sender, System.Windows.RoutedEventArgs e) { subjectRepository?.Dispose(); }
public void Dispose() { questionManager?.Dispose(); subjectRepository?.Dispose(); }