I want to add all the data obtained from json.
This code is available:
foreach (var capture in json.captures) { Console.WriteLine($"{capture.Key}, {captures.Value.Data}"); }
All data is displayed in the console.
Пример: 1: 242 2: 532 3: 264
How to put them all together? From 1 to 3. Or pre-add and display in one result.
242 + 532 + 264 = result.
json.captures.Sum(v=>v.Value.Data)
? - tym32167