Get blocks of type including nested
# help-with-umbraco
b
We can use the following to get blocks of a specific type from block list. e.g.
Copy code
content?.Sections?
    .Select(x => x.Content)
    .OfType<BlockAccordion>()
but this only select blocks are root level. If the block is nested in either blocks, are they any simple way to find all or just first match of
BlockAccordion
?