Difference between ToCharArray and ToArray

前端 未结 3 2065

What is the difference between ToCharArray and ToArray

string mystring = \"abcdef\";

char[] items1 = mystring.ToCharArray();
char[         


        
3条回答
  •  心在旅途
    2020-12-09 05:02

    If we are talking about converting strings to letters, the ToCharArray () function is faster than ToArray ()

提交回复
热议问题