Skip to content

Commit

Permalink
[App -> Services] Mark parameter as nullable in nav service.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogFeelings committed Aug 14, 2024
1 parent 015ad36 commit 2a0911d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface INavigationService
/// <param name="sourcePageType">The target page's type.</param>
/// <param name="parameter">The parameter to pass to the target page.</param>
/// <returns><see langword="true"/> if the navigation was successful.</returns>
public bool Navigate(PageType sourcePageType, object parameter);
public bool Navigate(PageType sourcePageType, object? parameter);

/// <summary>
/// Navigates to the target page type with a parameter and a custom
Expand All @@ -72,5 +72,5 @@ public interface INavigationService
/// <param name="parameter">The parameter to pass to the target page.</param>
/// <param name="infoOverride">The transition override.</param>
/// <returns><see langword="true"/> if the navigation was successful.</returns>
public bool Navigate(PageType sourcePageType, object parameter, NavigationTransitionInfo infoOverride);
}
public bool Navigate(PageType sourcePageType, object? parameter, NavigationTransitionInfo infoOverride);
}
4 changes: 2 additions & 2 deletions Source/Bluechirp/Services/Interface/NavigationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ public bool Navigate(PageType sourcePageType)
}

/// <inheritdoc/>
public bool Navigate(PageType sourcePageType, object parameter)
public bool Navigate(PageType sourcePageType, object? parameter)
{
Type targetType = AgnosticPageToAppPage(sourcePageType);

return TargetFrame.Navigate(targetType, parameter);
}

/// <inheritdoc/>
public bool Navigate(PageType sourcePageType, object parameter, NavigationTransitionInfo infoOverride)
public bool Navigate(PageType sourcePageType, object? parameter, NavigationTransitionInfo infoOverride)
{
Type targetType = AgnosticPageToAppPage(sourcePageType);

Expand Down

0 comments on commit 2a0911d

Please sign in to comment.