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


RSS Icon Subscribe to comments

You need to login to post a comment.