Open menu

Official Microsoft Software Development

20483: Programming in C#

Audience

This course is intended for experienced developers who already have programming experience in C, C++, JavaScript, Objective-C, Microsoft Visual Basic, or Java and understand the concepts of object-oriented programming.

This course is not designed for students who are new to programming; it is targeted at professional developers with at least one month of experience programming in an object-oriented environment.

Prerequisites

Developers attending this course should already have gained some limited experience using C# to complete basic programming tasks. More specifically, students should have hands-on experience using C# that demonstrates their understanding of the following:

  • How to name, declare, initialize and assign values to variables within an application.
  • How to use: arithmetic operators to perform arithmetic calculations involving one or more variables; relational operators to test the relationship between two variables or expressions; logical operators to combine expressions that contain relational operators.
  • How to create the code syntax for simple programming statements using C# language keywords and recognize syntax errors using the Visual Studio IDE.
  • How to create a simple branching structure using an IF statement.
  • How to create a simple looping structure using a For statement to iterate through a data array.
  • How to use the Visual Studio IDE to locate simple logic errors.
  • How to create a Function that accepts arguments (parameters and returns a value of a specified type.
  • How to design and build a simple user interface using standard controls from the Visual Studio toolbox.
  • How to connect to a SQL Server database and the basics of how to retrieve and store data.
  • How to sort data in a loop.
  • How to recognize the classes and methods used in a program.

Duration

5 days. Hands on.

Course Objectives

This training course teaches developers the programming skills that are required for developers to create Windows applications using the Visual C# language. During their five days in the classroom students review the basics of Visual C# program structure, language syntax, and implementation details, and then consolidate their knowledge throughout the week as they build an application that incorporates several features of the .NET Framework 4.7.

After completing this course, students will be able to:

  • Describe the core syntax and features of Visual C#.
  • Create methods, handle exceptions, and describe the monitoring requirements of large-scale applications.
  • Implement the basic structure and essential elements of a typical desktop application.
  • Create classes, define and implement interfaces, and create and use generic collections.
  • Use inheritance to create a class hierarchy and to extend a .NET Framework class.
  • Read and write data by using file input/output and streams, and serialize and deserialize data in different formats.
  • Create and use an entity data model for accessing a database and use LINQ to query data.
  • Access and query remote data by using the types in the System.Net namespace and WCF Data Services.
  • Build a graphical user interface by using XAML.
  • Improve the throughput and response time of applications by using tasks and asynchronous operations.
  • Integrate unmanaged libraries and dynamic components into a Visual C# application.
  • Examine the metadata of types by using reflection, create and use custom attributes, generate code at runtime, and manage assembly versions.
  • Encrypt and decrypt data by using symmetric and asymmetric encryption.

Course Content

Module 1: Review of Visual C# Syntax
Overview of Writing Application by Using Visual C#
Data Types, Operators, and Expressions
Visual C# Programming Language Constructs
Lab: Implementing Edit Functionality for the Students List
After completing this module, students will be able to:
• Describe the architecture of .NET Framework applications and the features that Visual Studio 2017 and Visual C# provide.
• Use basic Visual C# data types, operators, and expressions.
• Use standard Visual C# constructs.

Module 2: Creating Methods, Handling Exceptions, and Monitoring Applications
Creating and Invoking Methods
Creating Overloaded Methods and Using Optional and Output Parameters
Handling Exceptions
Monitoring Applications
Lab: Extending the Class Enrolment Application Functionality
After completing this module, students will be able to:
• Create and invoke methods.
• Create overloaded methods and use optional parameters.
• Handle exceptions.
• Monitor applications by using logging, tracing, and profiling.

Module 3: Basic types and constructs of Visual C#
Implementing Structs and Enums
Organizing Data into Collections
Handling Events
Lab: Writing the Code for the Grades Prototype Application
After completing this module, students will be able to:
• Create and use structs and enums.
• Use collection classes to organize data.
• Create and subscribe to events.

Module 4: Creating Classes and Implementing Type-Safe Collections
Creating Classes
Defining and Implementing Interfaces
Implementing Type-Safe Collections
Lab: Adding Data Validation and Type-Safety to the Application
After completing this module, you will be able to:
• Create and instantiate classes.
• Create and instantiate interfaces.
• Use generics to create type-safe collections.

Module 5: Creating a Class Hierarchy by Using Inheritance
Creating Class Hierarchies
Extending .NET Framework Classes
Lab: Refactoring Common Functionality into the User Class
After completing this module, you will be able to:
• Create base classes and derived classes by using inheritance.
• Create classes that inherit from .NET Framework classes.

Module 6: Reading and Writing Local Data
Reading and Writing Files
Serializing and Deserializing Data
Performing I/O by Using Streams
Lab: Generating the Grades Report
After completing this module, you will be able to:
• Read and write data to and from the file system by using file I/O.
• Convert data into a format that can be written to or read from a file or other data source.
• Use streams to send and receive data to or from a file or data source.

Module 7: Accessing a Database
Creating and Using Entity Data Models
Querying Data by Using LINQ
Lab: Retrieving and Modifying Grade Data
After completing this module, you will be able to:
• Create, use, and customize an EDM.
• Query data by using LINQ.

Module 8: Accessing Remote Data
Accessing Data Across the Web
Accessing Data by Using OData Connected Services
Lab: Retrieving and Modifying Grade Data Remotely
After completing this module, you will be able to:
• Send data to and receive data from web services and other remote data sources.
• Access data by using WCF Data Services.

Module 9: Designing the User Interface for a Graphical Application
Using XAML to Design a User Interface
Binding Controls to Data
Lab: Customizing Student Photographs and Styling the Application
After completing this module, you will be able to:
• Use XAML to design a UI.
• Bind a XAML control to data.
• Apply styles to a XAML UI.

Module 10: Improving Application Performance and Responsiveness
Implementing Multitasking
Performing Operations Asynchronously
Synchronizing Concurrent Access to Data
Lab: Improving the Responsiveness and Performance of the Application
After completing this module, you will be able to:
• Use the Task Parallel Library to implement multitasking.
• Perform long-running operations without blocking threads.
• Control how multiple threads can access resources concurrently.

Module 11: Integrating with Unmanaged Code
Creating and Using Dynamic Objects
Managing the Lifetime of Objects and Controlling Unmanaged Resources
Lab: Upgrading the Grades Report
After completing this module, you will be able to:
• Integrate unmanaged code into a Microsoft Visual C# application by using the Dynamic Language Runtime (DLR).
• Control the lifetime of unmanaged resources and ensure that your application releases resources.

Module 12: Creating Reusable Types and Assemblies
Examining Object Metadata
Creating and Using Custom Attributes
Generating Managed Code
Versioning, Signing, and Deploying Assemblies
Lab: Specifying the Data to Include in the Grades Report
After completing this module, you will be able to:
• Use reflection to inspect and execute assemblies.
• Create and consume custom attributes.
• Generate managed code at run time by using CodeDOM.
• Version, sign, and deploy your assemblies to the GAC.

Module 13: Encrypting and Decrypting Data
Implementing Symmetric Encryption
Implementing Asymmetric Encryption
Lab: Encrypting and Decrypting the Grades Report
After completing this module, you will be able to:
• Encrypt data by using symmetric encryption.
• Encrypt data by using asymmetric encryption.

Verhoef Training Ltd.

11 Kingsmead Square
Bath, BA1 2AB
United Kingdom

Tel: +44(0)1225 339705

Email: info@verhoef-training.co.uk

Become a Trainer

Ever thought about using your skills to help others?

Call us to find out about how you can teach for Verhoef.

Tel: +44(0)1225 339705