csharp remove first 5 characters from string

Code Example - csharp remove first 5 characters from string

                
                        str = str.Substring(n); //Where n is the number of characters you want to remove
                    
                
 

remove first character in a string csharp

                        
                                // initial string is "/temp" it will be changed to "temp"
data.Remove(0,1);
data.TrimStart('/');
data.Substring(1);
                            
                        
 

csharp remove first three characters from string

                        
                                str = "hello world!";
str.Substring(n, str.Length-n)