Upcoming SlideShare
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Standard text messaging rates apply

# expression tree

166
views

Published on

Expression Tree …

Expression Tree
presented by Drake @20121207

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total Views
166
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
4
0
Likes
0
Embeds 0
No embeds

No notes for slide
• NewArrayExpression, ConditionExpression
• http://msdn.microsoft.com/en-us/library/bb506649.aspx
• http://www.albahari.com/nutshell/predicatebuilder.aspx
• ### Transcript

• 1. Expression Tree drake
• 2. Expression• 3• a• !a• a+b• Math.Sin(a)• new StringBuilder()
• 3. Expression• 3 ConstantExpression• aParameterExpression• !aUnaryExpression• a+bBinaryExpression• Math.Sin(a)MethodCallExpression• new StringBuilder()NewExpression
• 4. Summary• 運算式的一個重要的特點就是它可以無限 地組合，只要符合正確的類型和語義• + 可以用於各類數數值型別的加法，那麼加 號的左右就可以是任何類型為相應數值的 表達式
• 5. Example• a+2+3• (a + 2) => b, (b+3)
• 6. Example• Math.Sin(a) + 3
• 7. Expression• System.Linq.Expressions 1+2+3
• 8. UsageSystem.Linq.Expressions.Expression
• 9. Expressioin• Math.Sin(a)
• 10. Usage
• 11. Lambda Expression• (parameters) => expression
• 12. Usage
• 13. InvocationExpression
• 14. Usage
• 15. Expression.OrElse Method
• 16. Usage
• 17. Using PredicateBuilder
• 18. PredicateBuilder Source Code
• 19. • Thank you for your listening!