asp.net - What is the character expression for a new line in C#? -


i've got text box control on page , want people add urls, 1 on each line , split urls array.

so, i'm trying split them on newline character. i've tried:

.split(environment.newline) .split('vbcrlf') .split(vbcrlf) .split((char)environment.newline) 

but no avail. doing wrong?

.split(new []{environment.newline}, stringsplitoptions.none); 

this because environment.newline string, must pass in array of strings, function overload requires, there needs stringsplitoptions value included. can either stringsplitoption.none or stringsplitoption.removeemptyentries.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -