C C T B H P N

Lecture #5 - The C# Programming Language

Example Code

C# Code Examples:

This lecture continues our introduction to the C# programming language. We will focus on code examples.

Web Resources:

UML XML, HTML Code Project Microsoft Developer's Network DevelopMentor XML Sells Brothers Windows Developer's Journal WindowsClient.net DotNetJunkies dotnet quickstart tutorials C# Corner Mono Project Performance Counters

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. Lecture and Help Session Videos
  3. Projects:

    Time to start thinging about Project #2:

    • Project #1
      Operational Concept Document for Lexical Analyzer - Due Wednesday before Midnight Please zip your OCD and prototype code in ONE zip file (no rar or tar or ...) and upload.
      Note: there is a 25 MB limit for uploads so you will have to clean your projects before zipping.
    • Project #2, Project #2 Helper Code
      Lexical Analyzer Implementation
    • Visual Studio Help Slides, Package notes
    • QA 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 still need to see the TAs or come to the help sessions on Fridays.
  4. C# Models

  5. C# Example: Project #2 Helper Code

  6. .Net Framework Class Libraries

    .Net Libraries provide a lot of support for Windows platforms:

  7. Code examples:

    Some of these examples should be directly relevant to Project #2:

  8. Programming in C#, pptx
  9. Using Dynamic Link Libraries (DLLs)
    Shows how to build and execute dynamic link libraries - make sure you study both the code and comments in this demonstration.
  10. C# Code Examples:
  11. C# Tutorials:
  12. Lecture Take-away:

    The most important things we discussed today are:
  13. For Monday - print out these source listings for discussion:

    • Various ways to declare and use delegates
      Newer syntax is less verbose - I use it a lot now.
    • 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 - Fall 2015