c# nullable twine error


private string? typeofcontract
{
{ relapse (string?)viewstate["typeofcontract"]; }
set { viewstate["typeofcontract"] = value; }
}


later formula i this:



typeofcontract = request.querystring["type"];


i am removing following blunder during chapter typeofcontract line stating:




the form 'string' contingency non-nullable value form method use
parameter 't' general form method
'system.nullable<t>'




any ideas? basically, i wish certain "type" exists querystring before behaving an action.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members