title: Getting Href property with anglesharp linq query
body: <p>I am trying to understand how to use anglesharp.</p>
  
  <p>I made this code based on the example (<a href="https://github.com/AngleSharp/AngleSharp" rel="nofollow">https://github.com/AngleSharp/AngleSharp</a>):</p>
  
  <pre><code>        // Setup the configuration to support document loading
          var config = Configuration.Default.WithDefaultLoader();
          // Load the names of all The Big Bang Theory episodes from Wikipedia
          var address = "http://store.scramblestuff.com/";
          // Asynchronously get the document in a new context using the configuration
          var document = await BrowsingContext.New(config).OpenAsync(address);
          // This CSS selector gets the desired content
          var menuSelector = "#storeleft a";
          // Perform the query to get all cells with the content
          var menuItems = document.QuerySelectorAll(menuSelector);
          // We are only interested in the text - select it with LINQ
          var titles = menuItems.Select(m =&gt; m.TextContent).ToList();
  
          var output = string.Join("\n", titles);
  
          Console.WriteLine(output);
  </code></pre>
  
  <p>This works as expected but now I want to access the <code>Href</code> property but I am unable to do this:</p>
  
  <pre><code>var links = menuItems.Select(m =&gt; m.Href).ToList();
  </code></pre>
  
  <p>When I look in the debugger I can see in results view that the <code>HtmlAnchorElement</code> enumerable object has a Href property but I am obviously not trying to access it right.</p>
  
  <p>None of the examples in the documentation show a property being accessed so I guess it's something so simple that doesn't need to be shown but I am not seeing how to do it.</p>
  
  <p>Can anyone show me how I should be accessing a html property with angle sharp?</p>
  
  <p>edit:</p>
  
  <p>This works when I cast it to the correct type</p>
  
  <pre><code>foreach (IHtmlAnchorElement menuLink in menuItems)
          {
              Console.WriteLine(menuLink.Href.ToString());
          }
  </code></pre>
  
  <p>How would I write that as a Linq statement like the titles variable?</p>