C# String Replace()The C# Replace() method is used to get a new string in which all occurrences of a specified Unicode character in this string are replaced with another specified Unicode character. There are two methods of Replace() method. You can replace string also. SignatureParameterfirst: it is a first parameter of char type. second: it is a second parameter of char type. ReturnIt returns a string. C# String Replace() Method ExampleOutput: Hello C# C# String Replace() Method Example 2Output: Cheers C#, Cheers .Net, Cheers Javatpoint
Next TopicC# String Split()
|