Click here to Skip to main content
12,360,037 members (60,690 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Stats

60.2K views
346 downloads
47 bookmarked
Posted

LINQ To Google Image and Google Groups

, 8 May 2007
A LINQ Implementation for Google Images/Groups Search
using System;
using System.Collections.Generic;
using System.Text;

using System.Linq;
using System.Linq.Expressions;

namespace MChen.Linq.Google
{
    class Program
    {
        static void Main(string[] args)
        {
            var test = from img in ImageSearch.Instance
            where (img.RelatesTo("SQL")
               || img.RelatesTo("Windows"))
               && img.RelatesTo("Microsoft")
               && !img.RelatesTo("2005")
               && img.Size == ImageSize.Small
               && img.Format == ImageFormat.GIF
               && img.Domain == "www.microsoft.com"
            orderby img.Rank
            select img;

            int cnt = 0;
            foreach (var img in test)
            {
                cnt++;
                Console.WriteLine(img);
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Ming.Chen
Web Developer
United States United States

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160621.1 | Last Updated 8 May 2007
Article Copyright 2007 by Ming.Chen
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid