C#split string(",") - error message无法从string转换为char [英] C# split string (",") --error message cannot convert from string to char
本文介绍了C#split string(",") - error message无法从string转换为char的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想知道是否有人可以帮助我...
I wonder if someone can help me...
我正在寻找创建一个字符串数组具有通过文档填充此数组的值,拆分字符串。
I am looking to create a string array and have the value of this array populated through a document, split string.
string [] cookieArray =(webBrowser1.Document.Cookie.Split(";"));
string[] cookieArray = (webBrowser1.Document.Cookie.Split(";"));
但是我收到一条错误消息 消息无法从字符串转换为字符。
However I am getting an error message message cannot convert from string to char.
非常感谢任何帮助或信息。
Would appreciated hugely any help or information on this.
谢谢
Aidan
推荐答案
将.Split(";")更改为.Split(';')
change .Split(";") to .Split(';')
这篇关于C#split string(",") - error message无法从string转换为char的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文