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