Skip to main content

Command Palette

Search for a command to run...

String operations

Updated
1 min read
String operations
F

Performance freak

List<string> to string[]

List<EntityName> device = dc.EntityName.Where(p => p.Id == userid).ToList();
string[] the_array = device.Select(i => i.PlayerID.ToString()).ToArray();

string to string[]

string someString = "something";
string[] stringArray = new string[]{ someString };

More from this blog

A developer's diary

45 posts

Just developer