79412018

Date: 2025-02-04 14:25:07
Score: 0.5
Natty:
Report link

if reLoadPage type is bool? then you don't have to define as bool after the variable name, it's unnecessary.

you can write like below
if (reLoadPage ?? false)

or with as bool
if (reLoadPage as bool? ?? false)

if reLoadPage type is dynamic then
if((reLoadPage is bool) ? reLoadPage : false)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Manish