結果の文字列とは異なる単一の文字列値が必要です。
私の文字列変数の戻り値は次のようになります:
string result = "1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1"; // from here I'll need 2
or string result = "1,1,1,1,1,1,1,1,4,1,1,1,1,1,1,1"; // from here I'll need 4
or string result = "1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1"; // from here I'll need 3