Learn to create methods that return values
Learning objectives
- Understand return types
- Learn more about the
returnkeyword - Learn more about capturing method return values
Learn to create methods that return values
return keywordLearn about exceptions, the exception handling process supported by C#, and then implement exception handling patterns for various coding scenarios.
Learn how to use different types of input parameters in methods
This module guides you through a code review and debugging process, as well as the process for adding exception handling to an application.
try-catch pattern.In this module, you’ll run an application to identify logic issues and then use the Visual Studio Code debugger tools to isolate and fix the issue.
try-catch exception handing and throwing exceptions in C# console applications.Learn how to debug C# console applications in Visual Studio Code and how to implement exception handling using the try-catch pattern. Configure the C# debugger tools in Visual Studio Code and use the debugger tools to isolate and fix logic issues. Examine the exception types provided by .NET and the properties of exception objects, then implement exception handling and throw customized exception objects.
Learn the difference between many data types, how they work, what they do, and how to choose one over another.
Demonstrate your ability to develop a console app that relies on methods with different parameters and return values to coordinate a visit to the petting zoo.
Demonstrate your ability to develop a console app that implements data formatting and using arrays to deliver a multiple term search feature.
Demonstrate your ability to develop a console app that implements data formatting and using arrays to deliver a search feature.