Perform basic string formatting in C#

Beginner
Developer
Higher Education Educator
K-12 Educator
Student
.NET

Combine literal and variable text data that contain special characters, formatting, and Unicode into meaningful messages for the end user.

Learning objectives

After you complete this module, you'll be able to:

  • Create string data containing tabs, new lines, and other special characters

  • Create string data containing Unicode characters

  • Combine string data into a new string value via concatenation

  • Combine string data into a new string value via interpolation

Prerequisites

  • Beginner level experience with displaying a message to a console using the Console.WriteLine() and Console.Write() methods.

  • Beginner level experience with data types, declaring, initializing, setting, and retrieving values from variables.