title: Is there a conditional operator for setting a variable in C# to the value of another variable if the latter isn't null?
body: <p>Something like the ternary operator (?:) or the null coalescing operator (??). It seems silly to me to take up two lines and be so wordy when the other operators exist.</p>
  
  <p>EDIT:
  Since it's requested, here's two possible examples of what I hope that I can find</p>
  
  <pre><code>var variable ?= mightBeNull;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>var variable = mightBeNull != null ? mightBeNull
  </code></pre>
  
  <p>Really, it's either something that can be used to assign a value, if it's not null, to a variable or an If without an Else packaged nicely in an operator.</p>