Skip to main content

String operations

Updated 1 min readMarkdown
String operations

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 };

About the author

No comments yet. Be the first to comment.

More from this blog