逗号在C#statament中

Ale*_*xey 1 c#

我正在审查此代码(用C#编写):

string root = match.Groups[1].Value,
                secon = match.Groups[2].Success ? match.Groups[2].Value.Substring(1) : string.Empty,
                third = match.Groups[3].Success ? match.Groups[3].Value.Substring(1) : string.Empty;
Run Code Online (Sandbox Code Playgroud)

有人可以解释逗号的目的吗?

nma*_*mat 5

它声明的类型的3个变量string命名root,seconthird分别.像这样:

int a, b, c;
Run Code Online (Sandbox Code Playgroud)