csharp add char to string

Code Example - csharp add char to string

                
                        string s = "";
s = s + myChar.ToString(); // Where myChar is the char to be added
                    
                
 

csharp insert character into string at position

                        
                                //Insert method returns a copy, it does not alter the string since strings are immutable
string str = "abc";
str = str.Insert(2, "XYZ"); //str == "abXYZc"