Visual C#/Visual Basic: Becoming a Guru with Existing Features

Sign in to queue

Description

This session details some of the evolution of the C#/VB syntax. This session will serve as an overview of various language syntax like lambdas, anonymous methods and closures. Included will be examples of how asynchronous programming has evolved in .NET since .NET 1.0, This session will include a brief introduction to the Task Parallel Library, along with a quick refresher on key language syntax.
For more information, check out this course on Microsoft Virtual Academy:

Day:

3

Code:

DEV325

Embed

Download

Download this episode

For more information, check out this course on Microsoft Virtual Academy:

The Discussion

  • User profile image
    DanSorensen

    Starts slow and is somewhat quiet. Most of the time is spent in code examples, presented in a very clear way. He shows a program written in .Net 1.1 and over the hour revises the code using new features of .Net 2, 3, 4, and 4.5. The final code is much more concise, and since he explained what each new feature improved upon or replaced, it was easier to understand what the new features did behind the scenes.

    While most of the code is explained in C#, he shows all the same features in VB, explaining where the feature differs from the C# version.

    He demonstrates:

    • IAsyncResult
    • Partial Classes
    • anonymous delegate methods
    • generics (briefly)
    • the yield keyword
    • implicitly typed variables (the var keyword)
    • Object collections (ICollection)
    • Lambdas (including the difference between statement and expression lambdas)
    • Extension methods
    • Linq to objects
    • Task Parallel Library
    • Async / Await keywords

    I found it to be a helpful demonstration.

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.