Objo.
Feedback Forum Docs Objo Studio
Feedback

Feature #1323

Standardise collection clearing with Array.Clear()

Status
Fixed
Fixed in
v26.8.6
Source discussion
https://forum.objo.dev/d/970-hashset-api-requests
Last updated
2026-08-29

Upvotes

0 upvotes

Uses your Objo forum account.

Public summary

Arrays currently remove every element with RemoveAll(), while HashSet.Clear() and Dictionary.Clear() clear their collections. This request adds Array.Clear() as the preferred API for removing every element from an array, so all built-in data collections share the same clearing idiom.

Array.Clear() is now the current clearing API. RemoveAll() is retained only for source compatibility: it is deprecated, and existing programs using it keep compiling and running while the compiler emits the normal deprecated-API warning recommending Clear().

Objo.

Build apps visually, deploy anywhere.

Feedback is a public read-only status mirror for Objo Studio.