public static string GetArrayCountsAndRemove(string jsonStr, string arrayName, out List <int> resultCounts) { int startInd = 0; resultCounts = new List <int>(); while (true) { int resultCount = 0; int foundInd; jsonStr = VKRequestsDispatcher.GetArrayCountAndRemoveExt(jsonStr, arrayName, startInd, out resultCount, out foundInd); if (foundInd >= 0) { resultCounts.Add(resultCount); startInd = foundInd + 1; } else { break; } } return(jsonStr); }
public static string GetArrayCountAndRemove(string jsonStr, string arrayName, out int resultCount) { int foundInd; return(VKRequestsDispatcher.GetArrayCountAndRemoveExt(jsonStr, arrayName, 0, out resultCount, out foundInd)); }