Author Archives: brianbacon

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging! Advertisements

Posted in Uncategorized | 1 Comment

Dynamic Proxy (or Getting Crazy with Dynamics and Expressions)

If you’ve read my earlier posts you’ll see I have a somewhat childish fascination (crush if you will) with the .Net Expressions and dynamics API’s. I think there is limitless potential with these two platforms and in this post I … Continue reading

Posted in Uncategorized | Leave a comment

ExpandoObject in Practice

It sounds like a joke but there really is a class called ExpandoObject. When I first heard of it I thought it was a farce, but it is actually pretty useful. [Let me preface this by saying I wouldn’t necessarily … Continue reading

Posted in Computers and Internet | Leave a comment

Further Exploring the .Net Expressions API

The .Net Expressions API (as a part of System.Linq.Expressions assembly) provides a vast set of functions that can be used to express mathematical expressions, which can be composed and executed (as lambas) at runtime. Expressions.Add, .Multiply, and .Subtract, are just … Continue reading

Posted in Uncategorized | Leave a comment

C# Properties and Expression Trees

Expression trees in C# fascinate me. They can be used to create dynamic methods or, in some cases, wrap existing methods or properties. Once constructed as lambdas, the expressions can be executed like any other C# method. Reflection accomplishes a … Continue reading

Posted in Uncategorized | Leave a comment

Windows Workflow and Error Handling

Unless caught with a fault handler, runtime exceptions in workflow activities terminates the workflow raising the workflow_terminated event. This could be problematic if your controller logic depends on the completion of the workflow wholesale. Exceptions can be handled at the … Continue reading

Posted in Computers and Internet | Leave a comment