How to use LINQ in a Workflow

Question Can I use a LINQ Query such as the following in a Workflow? private static void ShowQueryWithCode(IEnumerable<string> names){ Console.WriteLine("Linq Query in Code – show names that start with ‘R’"); // Assuming there are no null entries in the names collection var query = from name in names where name.StartsWith("R") select name; // This is…

1

How to make a library portable and data binding friendly at the same time?

Here is the challenge.  Create a portable library that could be used by almost anything including Console Apps, Windows Phone, ASP.NET, Xbox 360 Make it data binding friendly for targets like WPF, Silverlight and Windows 8 XAML Metro Apps by supporting property and collection changed notifications. Make it efficient so that users who don’t need…

2

My Essential Development Tools

There are a few development tools that I just can’t live without. ReSharper A few years ago I was sitting in Glenn Block’s office when I noticed some strange additions to Visual Studio.  When I asked him about it he said “That’s ReSharper” and I was hooked.  I had to have it. ReSharper helps me…

12

What’s Up With Ron

Nearly every day I get email from someone asking for help.  I wish I had time to answer every question.  I used to answer more of them but recently I was diagnosed with Adiposis Dolorosa. Adiposis dolorosa, or Dercum disease, is a rare condition that is characterized by multiple, painful fatty lipomas (benign, fatty tumors)…

13

Three Simple Rules for Better Debugging with WorkflowApplication

Developers often say that there is a steep learning curve with Windows Workflow Foundation (WF4).  I won’t deny that… instead, allow me to share three simple rules that will help you to get over that curve sooner and to make them easy to remember, they all begin with “U” which is appropriate because they do…

3