Click here to Skip to main content
11,570,750 members (47,988 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads
Add your own
alternative version

LINQ To Google Image and Google Groups

, 8 May 2007 57.4K 331 47
A LINQ Implementation for Google Images/Groups Search
googlelinq.zip
Google
Google
bin
Release
Google.exe
Google.pdb
Google.csproj.user
Properties
expression-tree.JPG
google_linq_10.zip
Common
Google.csproj.user
Group
Image
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
Web03 | 2.8.150624.2 | Last Updated 8 May 2007
Article Copyright 2007 by Ming.Chen
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid