title: Using nullable types in Linq expressions
body: <pre><code>var quantSubset =
      from userAns in userAnalysis.AllUserAnswers
      join ques in userAnalysis.AllSeenQuestions on userAns.QID equals ques.QID
      where (ques.QuestionType == "QT")
      select new {
          QuestionLevel = ques.LevelID,
          TimeTaken = userAns.TimeTaken,
          Points = userAns.Points,
          UsedWeapon = (userAns.UsedBy2 &amp;&amp; userAns.UsedHint),
          WasCorrect = userAns.WasCorrect.HasValue ? userAns.WasCorrect.Value : null
      };
  </code></pre>
  
  <p>In my select expression I want to select a nullable type WasCorrect (last part of the expression) but apparently I cannot do it the way I am currently trying. </p>
  
  <p>How can I get WasCorrect as nullable type</p>
  
  <p>I tried ?WasCorrect but that also doesnt gives error in Visual Studio. </p>