title: Operator && cannot be applied to operands of type 'bool'
body: <p>I have an if statement where I want it to be true if two or more conditions = true.  I tried using the &amp;&amp; operator but VS2012 just complains stating that;</p>
  
  <p>Error <em>Operator '&amp;&amp;' cannot be applied to operands of type 'bool' and 'Microsoft.Exchange.WebServices.Data.DelegateFolderPermissionLevel'</em></p>
  
  <p>I have tried three ways:</p>
  
  <pre><code>if (item.Permissions.CalendarFolderPermissionLevel != DelegateFolderPermissionLevel.Editor &amp;&amp; item.Permissions.InboxFolderPermissionLevel != DelegateFolderPermissionLevel.Editor)
              {
  
                  item.Permissions.CalendarFolderPermissionLevel = DelegateFolderPermissionLevel.Editor;
  
              }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>     if (item.Permissions.CalendarFolderPermissionLevel &amp;&amp; item.Permissions.InboxFolderPermissionLevel != DelegateFolderPermissionLevel.Editor)
              {
                  item.Permissions.CalendarFolderPermissionLevel = DelegateFolderPermissionLevel.Editor;
              }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if ((item.Permissions.CalendarFolderPermissionLevel = DelegateFolderPermissionLevel.Editor) &amp;&amp; (item.Permissions.InboxFolderPermissionLevel != DelegateFolderPermissionLevel.Editor))
              {
                  item.Permissions.CalendarFolderPermissionLevel = DelegateFolderPermissionLevel.Editor;
              }
  </code></pre>
  
  <p>Could not find anything useful on the net.  How would I go about writing such a statement?  It works fine with just the one condition..</p>