Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » LinqFarm   (RSS)

HDI Video: Generate from Usage in Visual Studio 2010 with Karen Liu

span.squiggle { color: red; text-decoration: underline;} .listing { font-weight: bold } .figure { font-weight: bold } .note { font-weight: italic; background: lightgray; border: 1px solid black; } Karen Liu, the Lead Program Manager for the Visual C#

Silverlight Revisited

I’ve written about Silverlight in previous posts published on this blog. Recently, however, I’ve found my thoughts coming back to this subject. This is hardly unusual: many people are interested in Silverlight. The reason for the attraction to this technology

Query Data with Parallel LINQ

This post shows a simple way to write code that takes advantage of multiple processors. You will see that LINQ queries can allow you to side step the difficult tasks normally involved in writing multi-threaded code. To get started, all you need is a little
Posted by Charlie Calvert | 23 Comments
Filed under: , ,

LINQ Farm: Covariance and Contravariance in C# 4.0

This post covers the upcoming C# 4.0 support for covariance and contravariance when working with delegates and interfaces. Eric Lippert’s series of posts on this subject are definitely the definitive reference at this time. I’m writing this overview of
Posted by Charlie Calvert | 35 Comments
Filed under: , ,

LINQ Farm: Preserving Formatting with LINQ to XML

In a previous post , you saw how to work with line numbers when using LINQ to XML to read a file. This post continues in the same vein, but this time the focus is on how to: Read in an XML file with an arbitrary format, and then write it back out to disk
Posted by Charlie Calvert | 2 Comments
Filed under: , ,

LINQ Farm: LINQ to XML and Line Numbers

There are times when it is useful to know the line number of a node in an XML file. This information can be a helpful to users, particularly if you want to report an error. It can also be convenient to search for a node by line number, but that can, of
Posted by Charlie Calvert | 8 Comments
Filed under: , ,

LINQ Farm: More on the LINQ Aggregate Operators

The LINQ aggregate operators allow you to perform simple math operations over the elements in a sequence. This post is designed to walk you through those operators, and give you an overview of how to use them. Table 1 shows a list of the 7 aggregate operators.
Posted by Charlie Calvert | 7 Comments
Filed under: , ,

LINQ Farm: More on Set Operators

This is a second post on the LINQ Set operators, the first being published while LINQ was still in beta. As mentioned in the previous post , there are four LINQ set operators: Union , Intersect , Distinct and Except . Like the other 49 LINQ operators,
Posted by Charlie Calvert | 3 Comments
Filed under: , ,

LINQ Farm: Lambdas

Lambdas are a simple technology with an intimidating name. They sound like they are going to be difficult to understand, but in practice prove to be relatively trivial. LINQ has an almost inordinate need for its users to declare a large number of small,
Posted by Charlie Calvert | 34 Comments
Filed under: , ,

LINQ Farm: Extension Methods and Scoping

There are a few scoping rules that you must keep in mind when using extensions methods. Problems with scoping and extensions methods are rare, but when you encounter them they are quite vexing. An instance method will always be called before an extension
Posted by Charlie Calvert | 11 Comments
Filed under: , ,

Charlie Speaking in Southern California

I will be presenting on C# and LINQ three times in Southern California next week at a series of user group meetings. The events will be held in the San Diego and the Los Angeles area . Lisa Feigenbaum will be flying down from Redmond with me, and she
Posted by Charlie Calvert | 5 Comments
Filed under: , , ,

LINQFarm: Understanding IEnumerable<T>, Part I

The IEnumerable<T> interface is a key part of LINQ to Objects and binds many of its different features together into a whole. This series of posts explains IEnumerable <T> and the role it plays in LINQ to Objects. If you hear people talking
Posted by Charlie Calvert | 9 Comments
Filed under: , ,

Charlie's Deck and Demos from his Essence of LINQ Talk

The sample programs and the slides from my Essence of LINQ talk are available on the Code Gallery LINQ Farm resource page. The LINQ Farm Resource Page The Downloads section of the page Direct Link to the Download
Posted by Charlie Calvert | 2 Comments
Filed under: , ,

LINQ Farm Seed: Using the Expression Tree Visualizer

The Visual Studio 2008 CSharp samples include several valuable tools that LINQ developers can use to help expedite the development process. One of the is the Expression Tree Visualizer. This tool works in both Visual Studio Express and the other versions
Posted by Charlie Calvert | 19 Comments
Filed under: , ,

LINQ Farm Seed 02: Aggregate Operator Part II

LINQ Farm Seeds are short posts designed to be read in a few minutes. In the previous seed we used the first overload of the C# 3.0 LINQ Aggregate operator to sum a list of numbers. In this post we'll work with a list of words. The code we will look at
Posted by Charlie Calvert | 11 Comments
Filed under: , ,
More Posts Next page »
 
Page view tracker