string newValue = someValue ?? "default";
The first operand someValue must be a nullable type. The above code will set the value of newValue to someValue unless it's null, then it'll set it to "default".
You could also use this inline:
Console.WriteLine("The value is " + (someValue ?? "null"));
another use return (bool)(ViewState["IsPaged"] ?? true);