+ 1

How to use remove all expression in c#. - lambda expression

if input is "hello world" the output should be "he wrd"

20th May 2017, 3:00 PM
Hadassah
Hadassah - avatar
1 Antwort
0
I know one way, but pretty sure tere's an easier one: string text = "Hello world"; char[] splittedText = text.CharToArray(); for (int i=0; i < splittedText.length; i++) { if(splittedText[i] == 'l') continue; Console.Write(splittedText[i]); }
24th May 2017, 6:14 AM
Eldar Bakerman