/// <inheritdoc /> public IEnumerable <Tree> GetAll(TreeUse use = TreeUse.Main) // use HasFlagAny: if use is Main|Dialog, we want to return Main *and* Dialog trees => _treeCollection.Where(x => x.TreeUse.HasFlagAny(use));