lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 15
Does the program below compile?
byte? a = byte.MaxValue; byte b = a;
A. No
B. Yes
Converting a nullable type to a regular type
A nullable type can be cast to a regular type, either explicitly with a cast, or by using the Value property.
Links:
Using Nullable Types