title: Razor in-line if statement not working?
body: <p>I've got an exception throwing at this line, and can't figure out why...maybe someone else can spot it</p>
  
  <pre><code>&lt;img src="@{Model.Image != null ? Model.Image.FileName : "";}" width="200px" id="ImagePreview"/&gt;
  </code></pre>
  
  <p>The exception I'm getting is:</p>
  
  <pre><code>error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
  </code></pre>