3
shouts

codeblog++: Threaded ForEach extension for IEnumerable

posted by http://thelifepattern.blogspot.com/http://thelifepattern.blogspot.com/ 260 days, 1 hour, 12 minutes ago
Thursday, July 02, 2009 5:57:12 PM GMT

I had an idea that would allow me to perform an operation on an item in an IEnumerable list on a different thread. This is good if you need to perform an extensive operation on an item in your list. It was also a nice exercise to get away from every day life.

First thing I did was create a static class to hold my extension and the extension method itself. This method will take two parameters, an action to perform per item and a callback after each operation per item has been completed.

public sta...

category: Architecture | clicked: 5 | | source: thelifepattern.blogspot.com | show counter code
tags: .NET, .NET 3.5, C#, C# .NET, C# 3.5

No comments yet, be the first one to post comment.

To post your comment please login or signup