title: Assigning null/Nullable to DateTime in Ternary Operation
body: <p>I have a statement like</p>
  
  <pre><code>DateTime ? dt = (string1 == string2) ? null; (DateTime)(txtbox.Text);
  </code></pre>
  
  <p>which I cannot compile. Reason is : <code>null</code> cannot be assigned to <code>DateTime</code>.</p>
  
  <p>So, I have to declare a <code>Nullable&lt;DateTime&gt; nullable</code> variable and replace <code>null</code> with <code>nullable</code>.</p>
  
  <p>I do not want to use <code>if</code>-statement and I want to do this in one line.</p>
  
  <p>Also, Can I use operator <code>??</code> here.</p>