Modify the content of strings using built-in string data type methods in C#

Beginner
Developer
Higher Education Educator
K-12 Educator
Student
.NET
Visual Studio Code

Use built in methods to extract, remove, or replace data in strings.

Learning objectives

  • Identify the position of a character or string inside of another string.

  • Extract portions of strings.

  • Remove portions of strings.

  • Replace values in strings with different values.

Prerequisites

  • Beginner level experience with string helper methods

  • Beginner level experience with the while iteration statement

  • Experience using Visual Studio Code to develop, build, and run C# code