Week 3b - Advanced C# Features

More Example Code

This lecture focuses on some of the newer additions to the C# language, e.g., LINQ, Extension Methods, and delegate shortcuts.

Web Resourses:

C# Tutorials

Lecture Specifics:

  1. The Syllabus describes topics to be covered, reading material for you to digest before coming to class, and due dates for the assigned projects.
  2. Projects:

  3. Q & A Threads:
    We will be using piazza.com to host Question and Answer threads.

    This will work to give quick answers to fairly short questions.
    It will not work to discuss complex questions about your coding problems or debugging.
    For that you will need to ask questions during the Synchronous lectures.

  4. C# Examples:

    Delegates:

    Lambdas:

    • Lambda capture
      Fairly simple example of lambda definition and use.
    • Lambda Demos
      Contains three demos:
      • LambdaDemo: illustrates delegate and lambda structures using reflection
      • MoreLambdas: Discloses behavior of lambda's variable capture
      • PredicateLambda: Shows one way to build query processing for Project #2

    Other Demos:

  5. More C# Code Examples and Tutorials:

  6. LINQ and related topics:

  7. Lecture Take-away:

    Most important topics are:
    • Delegates
    • Lambdas