开发者

why UnaryExpression not have body

开发者 https://www.devze.com 2023-03-12 08:23 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号