Nullable Type in C#

Introduction: Nullable types are introduced in C#2.0. Primitive data type like int, long cannot be assign null. int x = null;//Compile time error Example: Nullable<int> i = null; Nullable Types are instance of System.Nullable<T> struct. [Serializable] public struct Nullable<T> where T : struct { public bool HasValue { get; } public T Value { get; … Read more Nullable Type in C#