foreach (var file in Directory.EnumerateFiles("H:\\gelbooru\\Новая…
- User
foreach (var file in Directory.EnumerateFiles("H:\gelbooru\Новая папка\test\BeatifulLite\1")) { var jsonFile = Path.ChangeExtension(file, ".json"); if (!File.Exists(jsonFile)) continue; Console.WriteLine(jsonFile); var json = JsonSerializer.Deserialize(File.ReadAllText(jsonFile))!;
codeConsole.WriteLine(json.Version); var shapes = json.Shapes.Where(shape => json.Shapes.Count(shape1 => shape.Label == shape1.Label) == 1).ToList(); Console.WriteLine(shapes.Count); } - Assistant