title: How to test lambda expressions in Razor view?
body: <p>Can you please guide me how can I test my lambda expressions inside Razor view engine setting a break point?</p>
  
  <p>For example, I have below code:</p>
  
  <pre><code>@(Html.DropDownList("Condition4", 
                      new SelectList(Model
                                     .Conditions
                                     .Where(c =&gt; 
                                            c.TxCondition.TxConditionTypeId == Model.ConditionTypes.Single
                                            ct =&gt; ct.TxConditionType.ConditionTypeCode == "Region")
                                      .TxConditionType
                                      .TxConditionTypeId), 
                      "TxCondition.TxConditionId", 
                      "ConditionTitle",
                      Model.SearchCondition.Condition4), 
      "All"))
  </code></pre>
  
  <p>On break point I tried testing the following code using <code>"Quick Watch Windows"</code>  but the error was <strong>"Expression cannot contain lambda expressions"</strong></p>
  
  <p>Can you please guide me how to test lambda expressions in MVC Razor view ?</p>
  
  <p>Thank you so much for your time and help.</p>
  
  <pre><code>Model.Conditions.Where(c =&gt; c.TxCondition.TxConditionTypeId == 1)
  </code></pre>