Convert a word into character array

后端 未结 5 1731
花落未央
花落未央 2021-01-19 07:16

How do I convert a word into a character array?

Lets say i have the word \"Pneumonoultramicroscopicsilicovolcanoconiosis\" yes this is a word ! I would like to take

5条回答
  •  春和景丽
    2021-01-19 08:04

    you can use ToCharArray() method of string class

    string strWord = "Pneumonoultramicroscopicsilicovolcanoconiosis"; 
    char[] characters = strWord.ToCharArray(); 
    

提交回复
热议问题