Nullable Value Type

noun

say it: “NUL-uh-bul VAL-yoo type” /ˈnʌləbəl ˈvæljuː taɪp/

A value type such as int? or decimal? that can also hold null.

What is Nullable Value Type in C#?

Nullable Value Type — A value type followed by ? that can also hold null.

class Delivery
{
    DateTime? deliveredOn = null;
}

In a sentence

  • “ReorderLevel is a nullable value type, int?, because some products have none.”

Level: Journeyman · More C# terms at this level

Updated