Skip to main content
2 of 5
edited title
Uwe Keim
  • 40.9k
  • 61
  • 193
  • 309

How to convert nullable int to string

I need to convert the nullable int to string

int? a = null; string str = a.toString(); 

How can I perform this action without an exception? please guide me Thanks in advance.

Ravi Shankar B
  • 482
  • 2
  • 5
  • 15