CSharpFeeds - All your C# feeds in one place.

Friday, September 03, 2010

Reimplementing LINQ to Objects: Part 2 - "Where"

by skeet via Jon Skeet: Coding Blog on 9/3/2010 7:54:46 PM

Warning: this post is quite long. Although I've chosen a simple operator to implement, we'll encounter a few of the corner cases and principles involved in LINQ along the way. This will also be a somewhat experimental post in terms of format, as I try to work out the best way of presenting the material. We're going to implement the "Where" clause/method/operator. It's reasonably simple to understand in general, but goes into all of the deferred execution and streaming ...

[ read more ]

Parameters: oh, I don’t know how many I need…

by luisabreu via LA.NET [EN] on 9/3/2010 10:37:34 AM

If you’re a long time programmer/developer, then you probably expect to be able to create a parameter that receives a variable number of parameters.In C#, to declare a method that accepts a variable number of parameters you need to qualify the parameter with the params keyword. Here’s a quick example: static void PrintNames( params String[] names){ foreach (var name in names) { Console.WriteLine(name); } } As you can see, you use an array to represent a variable number of param ...

[ read more ]

Reimplementing LINQ to Objects: Part 1 - Introduction

by skeet via Jon Skeet: Coding Blog on 9/3/2010 6:37:06 AM

About a year and a half ago, I gave a talk at a DDD day in Reading, attempting to reimplement as much of LINQ to Objects as possible in an hour. Based on the feedback from the session, I went far too fast... and I was still a long way from finishing. However, I still think it's an interesting exercise, so I thought I'd do it again in a more leisurely way, blogging as I go. Everything will be under the "Reimplementing LINQ to Objects" tag, so that's the best way to get all t ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us