title: VB.net to c# error and i dont understand why
body: <p>Hello i tried converting this but i dont seem to figure out why.</p>
  
  <p>Im working on a external log in for my forum    </p>
  
  <pre><code>public override bool isLoggedIn(System.Net.CookieContainer cookies)
  {
      if ((cookies.GetCookies(new Uri(url)).Item(defaultCookieName) != null)) {
          return true;
      }
      return false;
  }
  </code></pre>
  
  <p>but it gives me this annoying error.</p>
  
  <blockquote>
    <p>Severity  Code    Description Project File    Line    Suppression State
    Error CS1061  'CookieCollection' does not contain a definition for
    'Item' and no extension method 'Item' accepting a first argument of
    type 'CookieCollection' could be found (are you missing a using
    directive or an assembly reference?)</p>
  </blockquote>
  
  <p>Could anyone help me out?</p>