Here you are using null-coalescing operator, this will Set pageNumber to the value of Page if Page is NOT null; otherwise, if page = null, set pageNumber to 1.
This can be rewritten like below
int pageNumber = 0;
if (Page != null)
{
pageNumber = Page;
}
else
{
pageNumber = 1;
}
All-Star
50831 Points
9895 Posts
Re: What is the long form of this int? and the long form "sdate_asc" ? "sdate_desc" : "sdate_asc...
Jan 09, 2017 08:37 PM|A2H|LINK
Here you are using null-coalescing operator, this will Set pageNumber to the value of Page if Page is NOT null; otherwise, if page = null, set pageNumber to 1.
This can be rewritten like below
Aje
My Blog | Dotnet Funda