Description
In this course, you will:
- Begin by writing little code samples to master the fundamentals of the C# syntax!
- Use data in your apps by defining literal and variable values for various data kinds.
- Combine literal and variable text data with special characters, formatting, and Unicode to create understandable messages for the user.
- Learn the operators and procedures for performing basic math operations on numerical data.
- Call methods in the.NET Class Library that return values, accept input parameters, and so on.
- Learn how to branch your code's execution route by evaluating boolean expressions.
- Work with arrays, which are data structures that store sequences of related data. Next, learn how to iterate through each item in the series.
Syllabus:
- Write your first C# code
- Exercise - "Hello World!"
- How it works
- Challenge
- Solution
- Store and retrieve data using literal and variable values in C#
- Exercise - Literal values
- Declare variables
- Exercise - Setting and getting values from variables
- Implicitly typed local variables
- Challenge
- Solution
- Perform basic string formatting in C#
- Exercise - Character Escape Sequences and Verbatim Strings
- Exercise - String Concatenation
- Exercise - String Interpolation
- Challenge
- Solution
- Perform basic operations on numbers in C#
- Exercise - Simple Addition and Implicit Data Conversion
- Exercise - Math Operators
- Exercise - Increment and Decrement Values
- Challenge
- Solution
- Call methods from the .NET Class Library using C#
- Introducing the .NET Class Library
- Calling different kinds of methods in the .NET Class Library
- Work with return values and input parameters
- Challenge
- Solution
- Add decision logic to your code using the if-elseif-else statement in C#
- Exercise - Use the if statement
- Exercise - Using the else if and else statements
- Challenge
- Solution
- Store and iterate through sequences of data using Arrays and the foreach statement in C#
- Exercise - Array Basics
- Exercise - foreach Statement
- Challenge
- Solution
- Create readable code with conventions, whitespace, and comments in C#
- Choose variable names that follow the rules and conventions
- Exercise - Comment your code
- Exercise - Use whitespace
- Challenge
- Solution