Mixing nullable and non-nullable operators - CSharp Language Basics

CSharp examples for Language Basics:Nullable

Introduction

You can mix and match nullable and non-nullable types.

int? a = null;
int b = 2;
int? c = a + b;   // c is null - equivalent to a + (int?)b

Related Tutorials