Answers for "how to split string with \n c#"

C#
3

c sharp split by newline

// To split a string by newlines, see below (requires 'System')
using System

text.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
Posted by: Guest on February-24-2020
1

c# separate string by a new line

var result = mystring.Split(new string[] {"\n"}, StringSplitOptions.None);
Posted by: Guest on January-31-2021
-3

how to split a string by in c#

char[] separator = new[] { ',' };
var result = aiTranslatedString.Split(separator, StringSplitOptions.RemoveEmptyEntries).ToList();
Posted by: Guest on October-08-2020

C# Answers by Framework

Browse Popular Code Answers by Language