79616796

Date: 2025-05-11 18:35:38
Score: 1
Natty:
Report link

I think the simplest way is:

int? myVar = null;
string test = myVar?.ToString() ?? string.Empty;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Leonardo Hernández