mohamedradwan.com - Nothing can beat experience
Post
Cancel

How to effectively debug Expression Tree?

First this is a very small tip and the reason for creating it because it took me time to reach where I can click the button to display the visualizer of the Expression tree?

  • First we have to be in the debug mode
  • Second open add-watch window for the expression

ExpressionTree

  • Third click on the a magnifying glass that appears, that's it

ExpressionTree2

  • Variable names are displayed with a "$" symbol at the beginning.
  • Assigned an automatically generated names for parameters, such as $var1 or $var2.
  • Assigned an automatically generated name for lambda expression, such as #Lambda1 or #Lambda2.

Good links for more more info http://msdn.microsoft.com/en-us/library/ee725345.aspx

http://marlongrech.wordpress.com/2008/01/08/working-with-expression-trees-part-1/

Trending Tags