To call multiple functions using the string "Mystring.ToUpper().FirstPart(3).Replace("M","Ok") in C# .net, you need to follow these steps:
Here is the code that implements the process:
// Step 1 string inputString = "Mystring";
// Step 2 string upperCaseString = inputString.ToUpper();
// Step 3 string firstThreeChars = upperCaseString.Substring(0, 3);
// Step 4 string finalString = firstThreeChars.Replace("M", "Ok");
// Output Console.WriteLine(finalString);
The output of the above code will be "OKY".
Asked: 2021-07-05 11:00:00 +0000
Seen: 9 times
Last updated: Oct 30 '22