9
Mar/10
0

Silverlight 3, LINQ, and Bing! Oh, my!

In my last post I talked about Silver Shorts and showed off my example Bing Image search application.

For this post I want to go over the code that I created for doing a Bing image query, to demonstrate just how powerful and concise Silverlight 3 C# code can be. To truly appreciate this, I suggest checking out the code, which totals about 225 lines for both the Image Search utility AND the Test Application.

To get started, let’s enumerate the requirements I came up with for the project:

  1. Image Search
    • Bing Image query based on textual search terms
    • Transform XML results into custom classes

We’ll refer back to these requirements as we build the code to make sure we stay on track.