From 04531d4382062d138f80f4b7d087847e0f589d35 Mon Sep 17 00:00:00 2001 From: Harald Wolff-Thobaben Date: Mon, 12 Dec 2022 22:31:00 +0100 Subject: [PATCH] Add JSONArray.GetValues --- ln.json/JSONArray.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ln.json/JSONArray.cs b/ln.json/JSONArray.cs index 27c6e03..c98bf37 100644 --- a/ln.json/JSONArray.cs +++ b/ln.json/JSONArray.cs @@ -62,5 +62,14 @@ namespace ln.json return sb.ToString(); } + public IEnumerable GetValues() + { + foreach (var value in values) + { + if (value is OT otValue) + yield return otValue; + } + } + } }