title: Check if MemberBinding's Expression is set or null
body: <p>I have a <code>List&lt;MemberBindings&gt;</code> which I check for specific attributes.
  Depending on the attributes, I want to check the expression and deciced whether to keep or throw away the binding.</p>
  
  <p>Currently I have the following:</p>
  
  <pre><code>foreach(var memberBinding in memberBindings)
  {
      // ... check for attributes
      var theExpression = ((MemberAssignment)memberBinding).Expression;
      // ... check if not set and skip
  }
  </code></pre>
  
  <p>and I want to check if theExpression is null (meaning not set) but I don't get the point.
  In DebugView it shows <code>{null}</code> for the <code>Expression</code>-property of the <code>memberBinding</code>.</p>
  
  <p>Neither <code>theExpression == null</code> nor <code>theExpression.Equals(null)</code> returning <code>true</code>. Also tried <code>theExpression == Expression.Constant(null) / theExpression.Equals(Expression.Constant(null))</code> with the same result.</p>
  
  <p>What am I missing here?</p>
  
  <p>** Update (added screenshot of debug-view) **</p>
  
  <p><a href="https://i.stack.imgur.com/s1dg1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s1dg1.png" alt="enter image description here"></a></p>