title: Is there any function in C# like isnull in SQL?
body: <p>In SQL server we can use "isnull" function for example if Table1 Contains Field1 and only one record which Field1 is null we can write this Query:</p>
  
  <pre><code>select isnull(Field1,0) from Table1
  </code></pre>
  
  <p>which returns "0".</p>
  
  <p>can we use any function like this in C#? for Example Consider textBox1 is Empty. and I want to Show "0".</p>
  
  <pre><code>MessageBox.show( FunctionName(textBox1.text , 0).toString());
  </code></pre>