title: Invalid Initializer Member Declarator
body: <p>I am trying to check if a field returned from SQL is null or not but I keep getting "Invalid Initializer Member Declarator" on the isDBNull</p>
  
  <p>Here is my code, what could be causing this?</p>
  
  <pre><code>while (dr.Read())
  {
      staff.Add(new Staff()
      {
          id = dr.GetInt32(dr.GetOrdinal("id")),
          dr.IsDBNull(dr.GetOrdinal("NAME")) ? null : dr.GetString(dr.GetOrdinal("NAME")),
  
          PARENT = dr.GetString(dr.GetOrdinal("PARENT")),
          VALUE = dr.GetString(dr.GetOrdinal("VALUE")),
          VALUETYPE = dr.GetString(dr.GetOrdinal("VALUETYPE"))
      });
  }
  </code></pre>