Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 如何在字符数组中强制转换字符列表对象?_.net_Vb.net_Arrays_List - Fatal编程技术网

.net 如何在字符数组中强制转换字符列表对象?

.net 如何在字符数组中强制转换字符列表对象?,.net,vb.net,arrays,list,.net,Vb.net,Arrays,List,如何转换或强制转换一个列表对象,该对象被称为字符容器,如 Dim mylist As List(Of Char) = New List(Of Char)(New Char() {"1"c, "2"c}) 在一个简单的字符数组中 Dim mychars() As Char 没有为…做一个循环 多谢各位 Max你试过这个吗 例如: Dim myChars() as Char = myList.ToArray() 给你:):名单。谢谢!toArray()方法生成作业!

如何转换或强制转换一个列表对象,该对象被称为字符容器,如

Dim mylist As List(Of Char) = New List(Of Char)(New Char() {"1"c, "2"c})
在一个简单的字符数组中

Dim mychars() As Char
没有为…做一个循环

多谢各位

Max

你试过这个吗

例如:

Dim myChars() as Char = myList.ToArray()
给你:):名单。谢谢!toArray()方法生成作业!