Implicit and explicit nullable conversions - CSharp Language Basics

CSharp examples for Language Basics:Nullable

Introduction

The conversion from T to T? is implicit, and from T? to T is explicit.

For example:

int? x = 5;        // implicit
int y = (int)x;    // explicit

Related Tutorials