📜  在 c# 代码示例中制作字符列表

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

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