From cbf6c4fb622d836fc3410058619b42125deab600 Mon Sep 17 00:00:00 2001 From: mrsh Date: Mon, 12 Jan 2026 03:27:32 +0100 Subject: [PATCH] pause at 53minutes --- C# Full Course for free/Strings methods.md | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 C# Full Course for free/Strings methods.md diff --git a/C# Full Course for free/Strings methods.md b/C# Full Course for free/Strings methods.md new file mode 100644 index 0000000..8ba8860 --- /dev/null +++ b/C# Full Course for free/Strings methods.md @@ -0,0 +1,49 @@ +# String method + +## ToUpper + +set strings uppercase + +```C# +String fullName = "mrsh"; +fullName = fullName.ToUpper(); + +``` + +## Tolower + +set strings lowercase + +```C# +String fullName = "mrsh"; +fullName = fullName.ToLower(); +``` + +## Replace + +```C# +String phoneNumber = "123-456-789"; +phoneNumber.Replace("-", "/"); +``` + +## Insert + +```C# +String fullName = "mrsh online"; +userName = fullName.Insert(0, "@"); +``` + +## Length + +```C# +String fullName = "mrsh online"; +fullName.Length(); +``` + +## Substring + +```C# +String fullName = "mrsh online"; +String firstName = fullName.Substring(0,4); +String lastName = fullName.Substring(5,6); +```