Debugging like a Pro in Visual Studio

,
September 6, 2018 / No Comment

Viewing method return values in the Locals/Autos windows in Visual Studio
Visual Studio is packed with tons of great debugging tools. There are so many tools that it’s often hard to keep track of them all. Simply knowing about a tool can make a significant improvement to your productivity. In this post, we’ll look at how you can examine […]
Read more

AUTHOR: CATEGORY: Blog, C#, LINQ, Visual Studio

Essential C#: Back to the Future

,
March 2, 2011 / No Comment

Are you stuck developing with an older version of the .NET framework or Visual Studio? Have C# language features left you behind feeling unable to catch up with its recent developments? If so, then this Back to the Future event is designed for you.
We will guide you through the language changes since C# first emerged, ramping up your skills […]
Read more

AUTHOR: CATEGORY: Headlines, LINQ

Parallel.For where i does not go to i++

,
April 25, 2010 / 1 Comment

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 Parallel.For and Parallel.ForEach.

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.

AUTHOR: CATEGORY: .Net, Headlines, LINQ

Something brewing… Not ready for Prime Time.

,
September 13, 2007 / No Comment

It’s been quiet on the blogging front for awhile.  Things have been pretty quiet at work and nothing of great value has been discovered.  I have been playing with WPF and WCF a bit.  I hooked up BTS 2006 to a WCF Send Port which was pretty cool.  I didn’t think the transport properties form was very “friendly”.  There were […]
Read more

AUTHOR: CATEGORY: .Net, Adapters, BizTalk, LINQ, WCF, WPF