private string? typeOfContract { get { return (string?)ViewState[\"typeOfContract\"]; } set { ViewState[\"typeOfContract\"] = value; } }
Later
System.String is a reference type and already "nullable".
Nullable and the ? suffix are for value types such as Int32, Double, DateTime, etc.