0

我正在尝试构建用于 IOC 扩展 nHydrate 的表达式字符串。当我在我的表达式上调用 ToString() 时,我得到如下信息:

employee => employee.Username == value( Some type name here )

有没有办法解决对实际值的价值调用?

employee => employee.Username == "Captain Spiffy"
4

1 回答 1

1

Doing a ToString() would only fetch you the end expression result, If it is a real expression tree, Like a Expression> then you can traverse the expressions tree using the Expression Visitor class. Make sure this is not a Func!

-Fahad

于 2010-08-31T22:49:31.183 回答