c# 4.5 default null to properties code example Example: c# object default property value public int X { get; set; } = x; // C# 6 or higher