Training
Module
Perform basic string formatting in C# - Training
Combine literal and variable text data that contain special characters, formatting, and Unicode into meaningful messages for the end user.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applications often respond to users by constructing messages based on user input. For example, it is not uncommon for websites to respond to a newly logged-on user with a specialized greeting that includes the user's name.
Several methods in the System.String and System.Text.StringBuilder classes allow you to dynamically construct custom strings to display in your user interface. These methods also help you perform a number of basic string operations like creating new strings from arrays of bytes, comparing the values of strings, and modifying existing strings.
Type Conversion in .NET
Describes how to convert one type into another type.
Formatting Types
Describes how to format strings using format specifiers.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Training
Module
Perform basic string formatting in C# - Training
Combine literal and variable text data that contain special characters, formatting, and Unicode into meaningful messages for the end user.