From ae14e2c379ac5755b9fb935d2606adb3c1526c91 Mon Sep 17 00:00:00 2001 From: Espen Luna Date: Mon, 12 Aug 2024 14:55:36 +0200 Subject: [PATCH] Finished tasks --- csharp-fundamentals-strings.Main/Extension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp-fundamentals-strings.Main/Extension.cs b/csharp-fundamentals-strings.Main/Extension.cs index 7fff359..bfffbcd 100644 --- a/csharp-fundamentals-strings.Main/Extension.cs +++ b/csharp-fundamentals-strings.Main/Extension.cs @@ -59,7 +59,7 @@ public StringBuilder two() // WRITE YOUR CODE BETWEEN THIS LINE... sb.Append("Hello, world!"); - sb.Replace("Hello, world!" , "!dlrow ,olleH"); + sb.Replace("Hello, world!" , new string(sb.ToString().Reverse().ToArray())); // ...AND THIS LINE