Search
 
SCRIPT & CODE EXAMPLE
 

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.
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# byte array to string 
Csharp :: mvc input type file 
Csharp :: detect trigger in unity 
Csharp :: C# aspnet how to run a migration 
Csharp :: use only one class from a namespace in c# 
Csharp :: Create gaps / headers between variables in the unity inspector 
Csharp :: request for adminstrator permission 
Csharp :: nginx listen on 80 and 443 
Csharp :: unity get rigidbody 
Csharp :: unity knowing when 0 input is pressed 
Csharp :: unity change color of sprite in script 
Csharp :: lump in neck under jaw 
Csharp :: how to check if string can be converted to int c# 
Csharp :: How to read a XML on C# 
Csharp :: conditional blazor styles 
Csharp :: basic movement script unity 
Csharp :: c# check if array is empty 
Csharp :: c# convert object to string 
Csharp :: C# convert iformfile to stream 
Csharp :: hash password with salt c# 
Csharp :: start command line from c# 
Csharp :: c# list sort by property string 
Csharp :: photon rpc 
Csharp :: unity look at target 
Csharp :: c# how to refresh your binding source 
Csharp :: Unity disable turn off component 
Csharp :: unity rotation 
Csharp :: c# get enum value from string 
Csharp :: unity assembly 
Csharp :: get current playing animation of animator unity 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =