Presentation is loading. Please wait.

Presentation is loading. Please wait.

Developer Knowledge Sharing Eric Sun Dec, 2007. What programming language did you learn in school and since then? Now, its time to refresh …

Similar presentations


Presentation on theme: "Developer Knowledge Sharing Eric Sun Dec, 2007. What programming language did you learn in school and since then? Now, its time to refresh …"— Presentation transcript:

1 Developer Knowledge Sharing Eric Sun Dec, 2007

2 What programming language did you learn in school and since then? Now, its time to refresh …

3 Test: Find Even Numbers C# 1.x – Loop in Collection (Array) C# 1.x – Delegate (Custom Delegate) C# 2.0 – Iterators (yield return) C# 2.0 – Delegate (Predicate ) C# 2.0 – Anonymous Method C# 3.0 – Lambda Expression C# 3.0 – LINQ (Language integrated Query) C# 3.0 – Extended Method

4 Class/Type/Object C# 1.x – Everything becomes class (OOP) C# 1.x – Runtime Type Info / Reflection / CodeDom C# 2.0 – Partial Class, Static Class C# 3.0 – Anonymous Class C# 3.0 – Implicit Type Variable C# 3.0 – Object and Collection Initializers C# 3.0 – Extended Method

5 Properties C# 1.x – Introduced properties C# 2.0 – Property access modifier C# 3.0 – Automatic property C# 3.0 – Object Initializers

6 Generics Generics is the ability to have type parameters on type. They are also called parameterized types or parametric polymorphism. Type Safe Collection: List EventArgs: EventHanlder Validation: IsInRange (min, max) Controller Demo: Presenter

7 Lambda Expression Lambda expression defines an anonymous function using the following syntax One parameter: x => x + 1 Two parameters: (x, y) => x * y No parameter: () => new Test() Expression Tree

8 LINQ Select: Default, Anonymous Class, Dictionary Where: Static, Dynamic Query Group: Aggregation, e.g. count Join: Inner Join, Out Join, Group Join Order: e.g. order by count desc Demo: Order – Appraiser Assignment

9 Whats Next Once you learnt how to drive, what are the rules to be on the road? Design Patterns ASP.NET Web Services / WCF Smart Client / WPF Q & A


Download ppt "Developer Knowledge Sharing Eric Sun Dec, 2007. What programming language did you learn in school and since then? Now, its time to refresh …"

Similar presentations


Ads by Google