Jan 23, 2009

C# runtime expression evaluation

I recently found out about a XAML declarative value converter for WPF which is based on a Visual Studio Linq lambda expression sample called DynamicQuery (Dynamic.cs is bundled with VS2008 as part of \Samples\1033\CSharpSamples.zip).

For a rule evaluation (engine) investigation I created a simple application that accepts a list of expression parameters and calculates the result of a formula:

Takes a couple of [ms] the first time but performs great after the initial hit.

No comments:

Post a Comment