C# Programming in Visual Studio Course
Course Details:
Length: 5 days
Price: $2,950/person (USD)
Group Price: Request Quote
Course Features:
Live Instructor Teaching
Certificate of Completion
Courseware: Print
Hands-On Learning?: Yes
Software Lab Included?: Yes
Delivery Methods:
Individuals and Groups
@ Your Location or Our Labs
Group Teams
@ Your Organization
This is an instructor-led course. It is taught by an instructor
live online or at organizations for groups.
For
team training, we can teach onsite at your office or private live online.
How Online Classes Work? - Learn How Our Live Online Classes Work
Course Overview
This thorough and comprehensive 5-day course is a practical introduction to programming in C#, utilizing the services provided by .NET. This course emphasizes the C# language. It is current to Visual Studio 2022, .NET 6 and C# 10. Important newer features such as dynamic data types, named and optional arguments, tuples, asynchronous programming keywords, nullable reference types, record types, and top-level statements are covered. Supplements provide a tutorial on Visual Studio 2022, an overview of LINQ, and coverage of unsafe code and pointers in C#.
This course is intended to be fully accessible to programmers who do not already have a strong background in object-oriented programming in C-like languages, such as C++ or Java. It is ideal, for example, for procedural programmers who desire to learn C#.
An important thrust of the course is to teach C# programming from an object-oriented perspective. It is often difficult for programmers trained originally in a procedural language to start “thinking in objects.” This course introduces object-oriented concepts early, and C# is developed in a way that leverages its object orientation. A case study is used to illustrate creating a complete system using C# and .NET. Besides supporting traditional object-oriented features, such as classes, inheritance, and polymorphism, C# introduces several additional features, such as properties, indexers, delegates, events, and interfaces that make C# a compelling language for developing object-oriented and component-based systems. This course provides thorough coverage of all these features.
C# as a language is elegant and powerful. But to utilize its capabilities fully, you need to have a good understanding of how it works with the .NET Framework. The course explores several important interactions between C# and the .NET Framework, and it includes an introduction to major classes for collections, delegates, and events. It includes a succinct introduction to creating GUI programs using Windows Forms. The course concludes with a chapter covering the newer features in the language.
Numerous programming examples and exercises are provided, including the case study. The student will receive a comprehensive set of materials, including course notes and all the programming examples.
Register Early: Registration Deadline is 2 Weeks Prior to Class Start.
Learning Objectives
- Acquire a working knowledge of C# programming
- Learn how to implement programs using C# and classes from the .NET Framework
- Gain an understanding of the object-oriented programming paradigm
- Learn how to implement simple GUI programs using Windows Forms
- Gain a working knowledge of important newer features in C#
Course Notes
Versions That Can Attend: Visual Studio 2022, 2019, 2017, 2015, 2013, 2012
Course Taught With: Visual Studio 2022 Software and Courseware
Prerequisites
• The student should have programming experience in a high-level language. This course is intended to be fully accessible to programmers who do not already have a strong background in object-oriented programming in C-like languages, such as C++ or Java. It is ideal, for example, for procedural programmers who desire to learn C#.
Suggested Follow-Ons
.NET Core Frameworks (Visual Studio)
.ASP.NET Core MVC (Visual Studio)
ASP.NET Web API Essentials Using C# (Visual Studio)
Course Topics
Chapter 1: Introduction to NET
What is .NET?
.NET Framework, NET Core and .NET 5.0
Application Models
Managed Code
Visual Studio 2022
Console Programs and New Console Template
GUI Programs
Chapter 2: First C# Programs
Hello, World
Namespaces
Variables and Expressions
Using C# as a Calculator
Input/Output in C#
.NET Framework Class Library
Chapter 3: Data Types in C#
Data Types
Integer Types
Floating Point Types
Decimal Type
Characters and Strings
Boolean Type
Conversions
Nullable Types
Chapter 4: Operators and Expressions
Operator Cardinality
Arithmetic Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Expressions
Checked and Unchecked
Chapter 5: Control Structures
If Tests
Loops
Arrays
Foreach
More about Control Flow
Switch
Chapter 6: Object-Oriented Programming
Objects
Classes
Inheritance
Polymorphism
Object-Oriented Languages
Components
Chapter 7: Classes
Classes as Structured Data
Methods
Constructors and Initialization
Static Fields and Methods
Constant and Readonly
Chapter 8: More about Types
Overview of Types in C#
Value Types
Boxing and Unboxing
Reference Types
Implicitly Typed Variables
Chapter 9: Methods, Properties and Operators
Methods
Parameter Passing
Method Overloading
Variable-Length Parameter Lists
Properties
Auto-Implemented Properties
Operator Overloading
Chapter 10: Characters and Strings
Characters
Strings
String Input
String Methods
StringBuilder Class
Programming with Strings
Chapter 11: Arrays and Indexers
Arrays
System.Array
Random Number Generation
Jagged Arrays
Rectangular Arrays
Arrays as Collections
Bank Case Study: Step 1
Indexers
Chapter 12: Inheritance
Single Inheritance
Access Control
Method Hiding
Initialization
Bank Case Study: Step 2
Chapter 13: Virtual Methods and Polymorphism
Virtual Methods and Dynamic Binding
Method Overriding
Fragile Base Class Problem
Polymorphism
Abstract Classes
Sealed Classes
Heterogeneous Collections
Bank Case Study: Step 3
Chapter 14: Formatting and Conversion
ToString
Format Strings
String Formatting Methods
Bank Case Study: Step 4
Type Conversions
Chapter 15: Exceptions
Exception Fundamentals
Structured Exception Handling
User-Defined Exception Classes
Inner Exceptions
Bank Case Study: Step 5
Chapter 16: Interfaces
Interface Fundamentals
Programming with Interfaces
Using Interfaces at Runtime
Bank Case Study: Step 6
Resolving Ambiguities
Chapter 17: .NET Interfaces and Collections
Collections
Bank Case Study: Step 7
IEnumerable and IEnumerator
Copy Semantics and ICloneable
Comparing Objects
Generic Types
Type-Safe Collections
Object Initializers
Collection Initializers
Anonymous Types
Bank Case Study: Step 8
Chapter 18: Delegates and Events
Delegates
Anonymous Methods
Lambda Expressions
Events
Chapter 19: Introduction to Windows Forms
Creating Windows Applications Using Visual Studio 2022
Partial Classes
Buttons, Labels and Textboxes
Handling Events
Listbox Controls
Chapter 20: Newer Features in C#
Dynamic Data Type
Named and Optional Arguments
Variance in Generic Interfaces
Asynchronous Programming Keywords
New Features in C# 6 and C# 7
Nullable Reference Types
Record Types
Top-level Statements
Appendix A: Learning Resources