Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
c# return default "" if null
Harry de Vries
Programming language:
C#
2021-04-09 02:42:09
2
Q:
c# return default "" if null
Chowzen
Code:
C#
2021-03-25 15:19:03
var test = value == null ? "" : value
0
Tags
turn
return
Related
C# datareadeer return null
c# 8 null coalescing assignment
nullreferenceexception c#
c# expression func automatically select return type
postasync c# returns null
c# null conditional operator if statement
set int to null c#
c# check if int is null
null coalescing operator c#
value is null to insert in c#
c# null conditional
c# auto property set default value
trhow exception if is null c#
c# null accessor
check if multiple variables are null c#
c# object default property value
New to Communities?
Join the community