📜  如何使字符串成为字符列表c#代码示例

📅  最后修改于: 2022-03-11 14:49:16.204000             🧑  作者: Mango

代码示例1
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
*/