C#: Check NULL, Return value shortcut


/ Published in: C#
Save to your folder(s)

If debit is null, return credit. Otherwise return debit.


Copy this code and paste it in your HTML
  1. return debit ?? credit

Report this snippet


Comments


You need to login to view comments.