.net - What does ?? mean in C#? -


possible duplicate:
what 2 question marks mean in c#?

what ?? mean in c# statement?

int availableunits = unitsinstock ?? 0; 

if (unitsinstock != null)     availableunits = unitsinstock; else     availableunits = 0; 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -