小编war*_*360的帖子

C# 在引号之间拆分字符串

在我的 Resource.resx 文件中,我有一个字段,我在其中放置了一系列字符串,例如:

"string1" "string two" "this is the string 3"
Run Code Online (Sandbox Code Playgroud)

我的目标是获得一系列字符串。

到目前为止,我所做的如下:

private static string[] mystrings = Resource.str.Split(null);
Run Code Online (Sandbox Code Playgroud)

但这只是根据空格字符拆分字符串。对于第二个和第三个字符串这是一个问题,因此最好解析“”之间的字符串。

有没有办法做到这一点?

c# string parsing split

2
推荐指数
1
解决办法
66
查看次数

标签 统计

c# ×1

parsing ×1

split ×1

string ×1