title: Use of unassigned bool? local variable
body: <p>i have this:</p>
  
  <pre><code>   foreach (Software.dsBDD.list_table21 row in dataTable.Rows)
          {
              PictureBox box;
              MemoryStream stream;
              Panel panel;
              Label label;
              bool? pass;
              if (this.pass.HasValue &amp;&amp; this.end)
              {
                 pass = this.pass;
              }
              if ((pass.GetValueOrDefault() &amp;&amp; pass.HasValue) || row.view_only)
          }
  </code></pre>
  
  <p>Variable "pass" near "GetValueOrDefault" underlined as an error: "Use of unassigned local variable pass". I don`t understand why this variable is unassigned because in the same line there is "pass" near "HasValue" and it is assigned. Where is my syntax error?!</p>