Add JSONArray.GetValues<OT>

master
Harald Wolff 2022-12-12 22:31:00 +01:00
parent 8d397ecbc6
commit 04531d4382
1 changed files with 9 additions and 0 deletions

View File

@ -62,5 +62,14 @@ namespace ln.json
return sb.ToString();
}
public IEnumerable<OT> GetValues<OT>()
{
foreach (var value in values)
{
if (value is OT otValue)
yield return otValue;
}
}
}
}