Smart-Casting and the Elvis Operator

Explore smart casting for null checks and efficiently set default values with the Elvis operator.

We'll cover the following

Smart-casting

Smart-casting also works for nullability. Therefore, in the scope of a non-nullability check, a nullable type is cast to a non-nullable type.

Get hands-on with 1200+ tech skills courses.