Presentatie .NET 4/VS2010

  • 861 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
861
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
4
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. VS2010 & .NET 4.0
    Capgemini BAS / CapgeminiTechnology ServicesMicrosoft Professionals Meet & Greet29 september 2009
  • 2. Agenda
    2
  • 3. Wat is nieuw in 4.0?
    3
    Data Services
    ASP.NET
    Workflow Foundation
    Entity Framework
    WPF
    Communication Foundation
    LINQ to SQL
    WinForms
    “Velocity”
    ADO.NET
    Core
    LINQ
    MEF
    Parallel Extensions
    Languages
    DLR
    Base Class Library
    .NET CLR
  • 4. Framework Verbeteringen: WF/WCF
    4
  • 5. Wat is nieuw in C# 4.0
    5
  • 6. Optional parameters
    6
  • 7. Namedarguments
    7
  • 8. GenericVariance
    Co-variance (specific to generic):
    List<string> strings = new List<string>();
    strings.Add( "hello" );
    strings.Add( "goodbye" );
    List<object> objects = new List<object>();
    objects.AddRange( strings );
    Contra-variance (generic to specific)
    Action<Student> submitLetter = (Person p) => {     SendMailTo(p.HomeAddress); };
    8
  • 9. Dynamicobjects
    object obj = tdse.GetObject(tcmUri,
    EnumOpenMode.OpenModeView,
    null,
    XMLReadFilter.XMLReadAll );
    stringtitle = null;
    if (objisComponent)
    {
    Componentcomponent = (Component) obj;
    title = component.Title;
    }

    elseif (objisPage)
    {
    Pagepage = (Page) obj;
    title = page.Title;
    }Display(title);
    dynamictridionItem =
    tdse.GetObject(tcmUri,
    EnumOpenMode.OpenModeView);
    stringtitle = tridionItem.Title;
    Display(title);
    9
  • 10. Dynamicobjects
    10
  • 11. DynamicObjects
    Demo
  • 12. Parallel Extensions
    12
  • 13. Parallel Extensions
    13
    Parallel class
    • static (overloaded) methods
    • 14. helper methods to create/work with Tasks
    • 15. encapsulates common patterns
  • Parallel Extensions
    Simpele parallelefor loop:
    int steps = 10;
    Parallel.For(0, steps, (i) =>
    {
    Console.WriteLine(i);
    }
    );
    14
  • 16. Parallel Extensions
    Dit kan ook met PLINQ:
    var q = from p in people.AsParallel()
            where p.Name == queryInfo.Name &&
    p.State == queryInfo.State &&
    p.Year >= yearStart &&
    p.Year <= yearEnd
            orderbyp.Year ascending
            select p;
    15
  • 17. Parallel Extensions
    Demo
  • 18. Visual Studio 2010
    17
  • 19. TDD met VS2010
    18
    Write
    Test
    Fail
    Y
    N
    Code
    Pass
    Y
    • Technique based on test-first approach
    • 20. Write test first
    • 21. Write code to pass test
    Benefits
    • Keeps focus on functionality of code
    • 22. Full code coverage
    • 23. Cleaner code
    N
    Refactor
    Re-test
  • 24. TDD met VS2010
    Demo
  • 25. TFS2010
    • Test Impact Analysis
    Setupbycreating a teambuild
    Finds code impactedbychanges
    Two Views
    • Impacted tests
    • 26. Changed code
    Visual Studio Team System
    20
  • 27. Remarks
    Info uit deze presentatie is gebaseerd op Beta1 van .NET 4.0 en VS2010!
  • 28. Niels Vrolijk: niels.vrolijk@capgemini.com
    Klaas Depenbrock: klaas.depenbrock@capgemini.com
    22