From 726d7d7e32f0f4f483805004f500e4338ac7ba1e Mon Sep 17 00:00:00 2001 From: Matthias Altmann Date: Fri, 19 Oct 2018 19:45:37 +0200 Subject: [PATCH] link fix --- content/csharp/getting-started/strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/csharp/getting-started/strings.md b/content/csharp/getting-started/strings.md index abecbff..ed1b7da 100644 --- a/content/csharp/getting-started/strings.md +++ b/content/csharp/getting-started/strings.md @@ -200,7 +200,7 @@ Note in the last example that multiple methods are chained together, such that t ## Replacing Parts of Strings -A frequent scenario when working with strings is the construction of a string that is composed of some fixed parts, and a part that is variable. You saw in the [last lesson](types-variables) how you could construct such a string using ``$"Hello {name}!`` syntax. This is known as *string interpolation*, and is a new feature in C# 6. The same string can also be constructed using concatenation (`` "Hello " + name + "!"``). Strings also support rich formatting, which at its simplest allows for this kind of replacement. To use string formatting, you specify a format string, which includes special placeholder values, and pass the format string and the replacement values to the ``Format`` method. Finally, you can use the ``Replace`` method to replace part of a string with another string. Consider the following examples: +A frequent scenario when working with strings is the construction of a string that is composed of some fixed parts, and a part that is variable. You saw in the [last lesson](types-variables.md) how you could construct such a string using ``$"Hello {name}!`` syntax. This is known as *string interpolation*, and is a new feature in C# 6. The same string can also be constructed using concatenation (`` "Hello " + name + "!"``). Strings also support rich formatting, which at its simplest allows for this kind of replacement. To use string formatting, you specify a format string, which includes special placeholder values, and pass the format string and the replacement values to the ``Format`` method. Finally, you can use the ``Replace`` method to replace part of a string with another string. Consider the following examples: ```{.snippet} string name = "Steve";