Horje
making a list of chars in c# Code Example
making a list of chars in c#
string data = "ABCDEFGHIJ1fFJKAL";
List<char> datalist = new List<char>();
datalist.AddRange(data);
how to make a string a list of characters c#
string scentence = "Hi there"; // Defining a string to turn to characters

char[] charArr = scentence.ToCharArray() // Turns String to a list of characters
  
//The output of charArr would be:
//['H', 'i', ' ', 't', 'h', 'e', 'r', 'e']
  
  
/*
Answer by Ren Rawbone
*/




Csharp

Related
print in c# unity Code Example print in c# unity Code Example
unity stop all audio Code Example unity stop all audio Code Example
how to deactivate objects through scripts in unity Code Example how to deactivate objects through scripts in unity Code Example
c# datetime to timestamp Code Example c# datetime to timestamp Code Example
hide datagrid column c# Code Example hide datagrid column c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10