In this .NET code:
return Redirect("~/Home" ?? "JaneDoe");
If I read the documents correctly, the ??" operator works similarly to IsNull in SQL:
IsNull("~/Home", "JaneDoe")
"~Home"and "JaneDoe"are just strings, right? There is no condition in the code return Redirectwhere “JaneDoe” will be what is passed to the “Redirect”, is there? I'm not sure what to do with this fragment, I can only assume that this is the place to come later.
This code is a .NET-MVC project in development that is part of a file .csthat is a LoginController.
source
share