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