79225836

Date: 2024-11-26 08:21:15
Score: 0.5
Natty:
Report link

You can't get name of your page using nameof(). Since your page is instance of Page type. What you can do is cast the page to it's type and then check it.

   if(stack[indexForPreviousPage] is SomePageInMyApp myPage)
   {
      // Do stuff using page
   }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bhavanesh N