Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

remove element from sting array c#

string[] array = new string[] { "1", "2", "3", "4", "5", "6", "7" };

List<string> list = new List<string>(array);

//you can sort List<string>!
list.Sort();

list.Remove("4");//remove specieifed item.
list.RemoveAt(2);//remove item from index.
list.RemoveRange(1, 2);//remove a range of items.
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #remove #element #sting #array
ADD COMMENT
Topic
Name
3+2 =