String Manipulation in C#: Best Practices
Strings are a core concept in .NET, which all developers must master. This course will teach you everything you need to know about the best practices for working with strings using C#.
What you'll learn
Strings are one of the most used types in any application you will build. In this course, String Manipulation in C#: Best Practices, you'll uncover everything you need to know about strings to use them effectively in your applications. First, you'll learn how to create strings to represent text data. Then, you'll explore the extensive collection of methods used to concatenate, modify, format and search strings. Finally, you'll discover advanced topics, such as how to use strings efficiently and how to apply best practices in your code. When you’re finished with this course, you’ll have the skills and knowledge required to manipulate strings and to produce high-quality software using C# and .NET.
Table of contents
- Version Check 0m
- Module Introduction 2m
- Introducing Strings 2m
- String Implementation Details 3m
- Declaring and Initializing Strings 7m
- Immutability of Strings 2m
- Introducing Chars 2m
- Declaring and Initializing Chars 2m
- Strings and Characters 1m
- Char Static Methods 1m
- String and Char Best Practices 1m
- Comparison and Equality 4m
- Variables Affecting Comparisons 3m
- Comparing Strings 7m
- Sorting Strings 4m
- Cultural Differences When Sorting 3m
- String Equality 2m
- Cultural Differences for Equality 2m
- The Equality Operators 1m
- Comparing to Null or Empty 2m
- Roslyn Analyzers 1m
- Best Practices for String Comparisons 2m