This thorough and comprehensive 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 2019, .NET Framework 4.7.2 and C# 8.0. Important newer features such as dynamic data type, named and optional arguments, the use of variance in generic interfaces, asynchronous programming keywords, tuples, and nullable reference types are covered in a final chapter. Supplements cover Visual Studio 2019, the fundamentals of Language Integrated Query (LINQ), and unsafe code and pointers
Prerequisites:
The student should have programming experience in a high-level language
Course Topics:
1. Introduction to NET
- What is .NET?
- .NET Framework and .NET Core
- Application Models
- Managed Code
- Visual Studio 2019
- C# Console and GUI Programs
2. First C# Programs
- Hello, World
- Namespaces
- Variables and Expressions
- Using C# as a Calculator
- Input/Output in C#
- .NET Framework Class Library
3. Data Types in C#
- Data Types
- Integer Types
- Floating Point Types
- Decimal Type
- Characters and Strings
- Boolean Type
- Conversions
- Nullable Types
4. Operators and Expressions
- Operator Cardinality
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
- Expressions
- Checked and Unchecked
5. Control Structures
- If Tests
- Loops
- Arrays
- Foreach
- More about Control Flow
- Switch
6. Object-Oriented Programming
- Objects
- Classes
- Inheritance
- Polymorphism
- Object-Oriented Languages
- Components
7. Classes
- Classes as Structured Data
- Methods
- Constructors and Initialization
- Static Fields and Methods
- Constant and Readonly
8. More about Types
- Overview of Types in C#
- Value Types
- Boxing and Unboxing
- Reference Types
- Implicitly Typed Variables
9. Methods, Properties and Operators
- Methods
- Parameter Passing
- Method Overloading
- Variable-Length Parameter Lists
- Properties
- Auto-Implemented Properties
- Operator Overloading
10. Characters and Strings
- Characters
- Strings
- String Input
- String Methods
- StringBuilder Class
- Programming with Strings
11. Arrays and Indexers
- Arrays
- System.Array
- Random Number Generation
- Jagged Arrays
- Rectangular Arrays
- Arrays as Collections
- Bank Case Study—Step 1
- Indexers
12. Inheritance
- Single Inheritance
- Access Control
- Method Hiding
- Initialization
- Bank Case Study—Step 2
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
14. Formatting and Conversion
- ToString
- Format Strings
- String Formatting Methods
- Bank Case Study—Step 4
- Type Conversions
15. Exceptions
- Exception Fundamentals
- Structured Exception Handling
- User-Defined Exception Classes
- Inner Exceptions
- Bank Case Study—Step 5
16. Interfaces
- Interface Fundamentals
- Programming with Interfaces
- Using Interfaces at Runtime
- Bank Case Study—Step 6
- Resolving Ambiguities
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
18. Delegates and Events
- Delegates
- Anonymous Methods
- Lambda Expressions
- Events
19. Introduction to Windows Forms
- Creating Windows Applications Using Visual Studio 2019
- Partial Classes
- Buttons, Labels and Textboxes
- Handling Events
- Listbox Controls
20. Newer Features in C#
- Dynamic Data Type
- Named Arguments and Optional Arguments
- Variance in Generic Interfaces
- Asynchronous Programming Keywords
- New Features in C# 6.0 and C# 7.0
- Nullable Reference Types
ELECTRONIC FILE SUPPLEMENTS
Supplement 1. Using Visual Studio 2019
- Signing in to Visual Studio
- Overview of Visual Studio 2019
- Creating a Console Application
- Project Configurations
- Debugging
- Multiple-Project Solutions
Supplement 2. Language Integrated Query (LINQ)
- What Is LINQ?
- Basic Query Operators
- Filtering
- Ordering
- Aggregation
Supplement 3. Unsafe Code and Pointers in C#
- Unsafe Code
- C# Pointer Type
HSG courses are taught by the experienced instructors who are proven experts in their field. Our instructors are highly knowledgeable, friendly, reliable and inspiring. They speak and teach industry's best practices and often customize classes to meet individual needs.
Students are encouraged to ask questions and participate in discussions and training-labs.