Skip to content

Commit

Permalink
#528 Remove null checks for nav services that pass values by dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Sampson committed Apr 24, 2019
1 parent 350f94f commit b5ae569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ public class NavigateHelper<TViewModel>
/// <returns>Itself</returns>
public NavigateHelper<TViewModel> WithParam<TValue>(Expression<Func<TViewModel, TValue>> property, TValue value)
{
if (value is ValueType || !ReferenceEquals(null, value))
{
parameters[property.GetMemberInfo().Name] = value;
}
parameters[property.GetMemberInfo().Name] = value;

return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ public class NavigationHelper<TViewModel>
/// <returns>Itself</returns>
public NavigationHelper<TViewModel> WithParam<TValue>(Expression<Func<TViewModel, TValue>> property, TValue value)
{
if (value is ValueType || !ReferenceEquals(null, value))
{
queryString[property.GetMemberInfo().Name] = value;
}
queryString[property.GetMemberInfo().Name] = value;

return this;
}
Expand Down

0 comments on commit b5ae569

Please sign in to comment.