why UnaryExpression not have body
I was seeking some information about how to use Expression.Quote. And I've found an answer for it, What is the purpose of LINQ's Expression.Quote method?
After reading the post, I know how to use Expression.Quote 开发者_如何学编程and its effects. But in this post, you can see that the UnaryExpression class has a Body property. But now, I can't find it in VS2010 and in MSDN too. Why?
The UnaryExpression
class does not have a Body
property. If you look closely in the screenshot you are referring to, you'll see that the Body
property is actually seen under the UnaryExpression.Operand
property, and is therefore actually on the LambdaExpression
class.
精彩评论