Join Microsoft and IntelliTechture for a free Visual Studio 2010 Launch event in Spokane, Washington on July 21 from 2-5 PM. Topics to be covered include “What’s New in Visual Studio & .NET 4” and “Application Life-cycle Management with Team Foundation Server 2010.” For more information and to register, visit the event site at http://spokanevs2010launch.eventbrite.com/.
A problem was recent posed that I hadn’t thought to do using
Parallel.For in C#. How do you parallelize a
for loop variable increased by something other than
i++? Typically, I would simply iterate over a enumerable collection and run against the data in parallel using
It turns out that there is no support for this in the PFX API.
Parallel.For does not support incrementing other than one and it does not support reverse iteration. Also,
Enumerable is a static class – which means we can’t do extension methods on
Enumerable. However, we can use a custom iterator to generate the sequence for us. By using a
Func<int, int> allows us to use our familiar
i+= syntax for the increment function. We can quickly create a very simple iterator that will help us out.
If you have been putting off SharePoint development until 2010 in the hopes that such development will get streamlined, I have both good and bad news for you. The good news is that development on the SharePoint Server 2010 has improved significantly with strong Visual Studio 2010 support, application life-cycle management support, SharePoint LINQ, sandboxed […]
In this edition, I am going to wrap up a few loose ends with a selection of miscellaneous keyboard shortcuts and links to a summary keyboard shortcut poster. Debugging: I realize that none of you would write bugs, but in case you meet someone that does or perhaps on occasion you need to debug some […]
Knowing all the keyboard shortcuts for editing shows off our programming prowess, just like it would it did for programmers that could use VI. Rather than describing the well known ones like CTRL+F and CTRL+H, I am going to review some that are more unique to Visual Studio Programming: Find CTRL+I/CTRL+Shift+I Incremental Search: Turns on […]
There is not much point in writing code if you can’t compile it so, in this edition’s keyboard shortcut tips and tricks, we are going to discuss compiling your code. For both Visual C# and Visual Basic schemes, you can compile the entire solution using Ctrl+Shift+B. However, three keys (requiring two hands and an elbow) […]