Skip to content

Commit

Permalink
chore: simplify parameter initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Jan 22, 2024
1 parent 63a241a commit 5b296e1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2050,8 +2050,10 @@ public async Task RemoveAndGoBack_WithNavigationParameters()

((IPageAware)navigationService).Page = rootPage.Navigation.NavigationStack.Last();

var navParameters = new NavigationParameters();
navParameters.Add("id", 3);
var navParameters = new NavigationParameters
{
{ "id", 3 }
};

await navigationService.NavigateAsync("../", navParameters);

Expand Down

0 comments on commit 5b296e1

Please sign in to comment.