Presentatie .NET 4/VS2010

970 views

Published on

Introduction presentation for colleagues about what's new in the .NET 4 release

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
970
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Presentatie .NET 4/VS2010

  1. 1. VS2010 & .NET 4.0<br />Capgemini BAS / CapgeminiTechnology ServicesMicrosoft Professionals Meet & Greet29 september 2009<br />
  2. 2. Agenda<br />2<br />
  3. 3. Wat is nieuw in 4.0?<br />3<br />Data Services<br />ASP.NET<br />Workflow Foundation<br />Entity Framework<br />WPF<br />Communication Foundation<br />LINQ to SQL<br />WinForms<br />“Velocity”<br />ADO.NET<br />Core<br />LINQ<br />MEF<br />Parallel Extensions<br />Languages<br />DLR<br />Base Class Library<br />.NET CLR<br />
  4. 4. Framework Verbeteringen: WF/WCF<br />4<br />
  5. 5. Wat is nieuw in C# 4.0<br />5<br />
  6. 6. Optional parameters<br />6<br />
  7. 7. Namedarguments<br />7<br />
  8. 8. GenericVariance<br />Co-variance (specific to generic):<br />List&lt;string&gt; strings = new List&lt;string&gt;(); <br />strings.Add( &quot;hello&quot; ); <br />strings.Add( &quot;goodbye&quot; ); <br />List&lt;object&gt; objects = new List&lt;object&gt;(); <br />objects.AddRange( strings );<br />Contra-variance (generic to specific)<br />Action&lt;Student&gt; submitLetter = (Person p) =&gt; {     SendMailTo(p.HomeAddress); };<br />8<br />
  9. 9. Dynamicobjects<br />object obj = tdse.GetObject(tcmUri, <br />EnumOpenMode.OpenModeView, <br />null,<br />XMLReadFilter.XMLReadAll );<br />stringtitle = null;<br />if (objisComponent)<br />{<br />Componentcomponent = (Component) obj; <br />title = component.Title;<br />}<br />…<br />elseif (objisPage)<br />{<br />Pagepage = (Page) obj;<br />title = page.Title;<br />}Display(title); <br />dynamictridionItem = <br />tdse.GetObject(tcmUri, <br />EnumOpenMode.OpenModeView);<br />stringtitle = tridionItem.Title;<br />Display(title);<br />9<br />
  10. 10. Dynamicobjects<br />10<br />
  11. 11. DynamicObjects<br />Demo<br />
  12. 12. Parallel Extensions<br />12<br />
  13. 13. Parallel Extensions<br />13<br />Parallel class <br /><ul><li>static (overloaded) methods
  14. 14. helper methods to create/work with Tasks
  15. 15. encapsulates common patterns</li></li></ul><li>Parallel Extensions<br />Simpele parallelefor loop:<br />int steps = 10;<br />Parallel.For(0, steps, (i) =&gt;<br /> {<br />Console.WriteLine(i);<br /> }<br />);<br />14<br />
  16. 16. Parallel Extensions<br />Dit kan ook met PLINQ:<br />var q = from p in people.AsParallel()<br />        where p.Name == queryInfo.Name && <br />p.State == queryInfo.State &&<br />p.Year &gt;= yearStart &&<br />p.Year &lt;= yearEnd<br />        orderbyp.Year ascending<br />        select p;<br />15<br />
  17. 17. Parallel Extensions<br />Demo<br />
  18. 18. Visual Studio 2010<br />17<br />
  19. 19. TDD met VS2010<br />18<br />Write <br />Test<br />Fail<br />Y<br />N<br />Code<br />Pass<br />Y<br /><ul><li>Technique based on test-first approach
  20. 20. Write test first
  21. 21. Write code to pass test</li></ul>Benefits<br /><ul><li>Keeps focus on functionality of code
  22. 22. Full code coverage
  23. 23. Cleaner code</li></ul>N<br />Refactor<br />Re-test<br />
  24. 24. TDD met VS2010<br />Demo<br />
  25. 25. TFS2010<br /><ul><li>Test Impact Analysis</li></ul>Setupbycreating a teambuild<br />Finds code impactedbychanges<br />Two Views<br /><ul><li>Impacted tests
  26. 26. Changed code</li></ul>Visual Studio Team System<br />20<br />
  27. 27. Remarks<br />Info uit deze presentatie is gebaseerd op Beta1 van .NET 4.0 en VS2010!<br />
  28. 28. Niels Vrolijk: niels.vrolijk@capgemini.com<br />Klaas Depenbrock: klaas.depenbrock@capgemini.com<br />22<br />

×