csharp: convert array of integers to comma separated string

Code Example - csharp: convert array of integers to comma separated string

                
                        var result = string.Join(",", arr);
                    
                
 

javascript split string into array by comma and space

                        
                                input.split(/[ ,]+/); //splits string using RegEx on a space OR a comma
                            
                        
 

convert comma separated string to array csharp

                        
                                string fruit = "Apple,Banana,Orange,Strawberry";
string[] split = fruit.Split(',');