Course
Skills Expanded
Building .NET Console Applications in C# 7
Learn how to create well-designed, fully-featured .NET Console applications.
What you'll learn
Learn how to create well-designed .NET console applications and how to manipulate the console window, parse command line arguments, and handle input and output. By the end of this course you'll be developing maintainable applications that take full advantage of .NET console application capabilities.
Table of contents
Handling Input and Output
32mins
Command Line Arguments
51mins
- Module Overview 1m
- Reading Command Line Arguments 3m
- Quotation Marks and Backslashes 2m
- Setting Command Line Arguments When Debugging in Visual Studio 2m
- Simplistic Command Line Parsing 2m
- The Hidden Complexities of Argument Parsing 2m
- Using a Parsing Library to Help Us Out 6m
- Specifying Default Argument Values 1m
- Required Arguments and Strict Parsing 4m
- Boolean Arguments 2m
- Enum Arguments 2m
- Multiple Argument Values 3m
- Verb Style Arguments 7m
- Parsing Error Help Screens for Users 8m
- Outputting Parsing Errors to the User 2m
- Implicit Argument Names 2m
- Module Summary 2m
Manipulating the Console Window
19mins
- Module Overview 1m
- Changing the Console Window Title 2m
- Manipulating the Console Window Size 3m
- Setting Foreground and Background Colors 5m
- Creating a Busy Indicator Animation for Longer Running Tasks 4m
- Generating Sounds From a Console Application 2m
- Moving Areas of the Screen Buffer Around 2m
- Module Summary 1m
Architecting Console Applications
26mins
- Module Overview 2m
- Why Not Just Put Everything in Main? 1m
- The Template Method Pattern 2m
- Architecture Overview 1m
- Creating the Base Class Containing the Template Method 3m
- Implementing in a Console Application 6m
- Using With Alternative Input Data 2m
- Creating Derived Concrete Processors 2m
- An Alternative Implementation 5m
- Module Summary 1m