C# null return value code example Example: c# return default "" if null var test = value == null ? "" : value